the-algorithm/src/java/com/twitter/search/earlybird/archive/segmentbuilder/BuiltAndFinalizedSegment.java
twitter-team ef4c5eb65e Twitter Recommendation Algorithm
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.
2023-03-31 17:36:31 -05:00

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;
}
}