mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-06-13 14:48:54 +02:00
![twitter-team](/assets/img/avatar_default.png)
Please note we have force-pushed a new initial commit in order to remove some publicly-available Twitter user information. Note that this process may be required in the future.
30 lines
921 B
Java
30 lines
921 B
Java
package com.twitter.search.earlybird.archive.segmentbuilder;
|
|
|
|
import com.twitter.search.earlybird.index.EarlybirdSegmentFactory;
|
|
import com.twitter.search.earlybird.partition.SegmentInfo;
|
|
import com.twitter.search.earlybird.partition.SegmentSyncConfig;
|
|
|
|
public class BuiltAndFinalizedSegment extends SegmentBuilderSegment {
|
|
public BuiltAndFinalizedSegment(
|
|
SegmentInfo segmentInfo,
|
|
SegmentConfig segmentConfig,
|
|
EarlybirdSegmentFactory earlybirdSegmentFactory,
|
|
int alreadyRetriedCount,
|
|
SegmentSyncConfig sync) {
|
|
|
|
super(segmentInfo, segmentConfig, earlybirdSegmentFactory, alreadyRetriedCount, sync);
|
|
}
|
|
|
|
@Override
|
|
public SegmentBuilderSegment handle() throws SegmentInfoConstructionException,
|
|
SegmentUpdaterException {
|
|
|
|
throw new IllegalStateException("Should not handle a BuildAndFinalizedSegment.");
|
|
}
|
|
|
|
@Override
|
|
public boolean isBuilt() {
|
|
return true;
|
|
}
|
|
}
|