public class ExactlyOnceLabelGeneratorFactory extends Object implements com.starrocks.data.load.stream.LabelGeneratorFactory
| Constructor and Description |
|---|
ExactlyOnceLabelGeneratorFactory(String labelPrefix,
int numberOfSubtasks,
int subtaskIndex,
long restoreCheckpointId) |
| Modifier and Type | Method and Description |
|---|---|
ExactlyOnceLabelGenerator |
create(String db,
String table) |
long |
numGenerators() |
void |
restore(List<ExactlyOnceLabelGeneratorSnapshot> snapshots) |
List<ExactlyOnceLabelGeneratorSnapshot> |
snapshot(long checkpointId) |
public ExactlyOnceLabelGeneratorFactory(String labelPrefix, int numberOfSubtasks, int subtaskIndex, long restoreCheckpointId)
public ExactlyOnceLabelGenerator create(String db, String table)
create in interface com.starrocks.data.load.stream.LabelGeneratorFactorypublic List<ExactlyOnceLabelGeneratorSnapshot> snapshot(long checkpointId)
public void restore(List<ExactlyOnceLabelGeneratorSnapshot> snapshots)
@VisibleForTesting public long numGenerators()
Copyright © 2023. All rights reserved.