public interface SegmentAllocator
Modifier and Type | Method and Description |
---|---|
SegmentIdentifier |
allocate(InputRow row,
String sequenceName,
String previousSegmentId,
boolean skipSegmentLineageCheck)
Allocates a new segment for a given timestamp.
|
SegmentIdentifier allocate(InputRow row, String sequenceName, String previousSegmentId, boolean skipSegmentLineageCheck) throws IOException
row
- 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 orderIOException
Copyright © 2011–2018. All rights reserved.