public class ActionBasedSegmentAllocator extends Object implements SegmentAllocator
| Constructor and Description |
|---|
ActionBasedSegmentAllocator(TaskActionClient taskActionClient,
DataSchema dataSchema) |
| Modifier and Type | Method and Description |
|---|---|
SegmentIdentifier |
allocate(InputRow row,
String sequenceName,
String previousSegmentId,
boolean skipSegmentLineageCheck)
Allocates a new segment for a given timestamp.
|
public ActionBasedSegmentAllocator(TaskActionClient taskActionClient, DataSchema dataSchema)
public SegmentIdentifier allocate(InputRow row, String sequenceName, String previousSegmentId, boolean skipSegmentLineageCheck) throws IOException
SegmentAllocatorallocate in interface SegmentAllocatorrow - the event which triggered this allocation requestsequenceName - sequenceName for this allocationpreviousSegmentId - segment identifier returned on the previous call to allocate for your sequenceNameskipSegmentLineageCheck - if true, perform lineage validation using previousSegmentId for this sequence.
Should be set to false if replica tasks would index events in same orderIOExceptionCopyright © 2011–2018. All rights reserved.