public interface SegmentIdProvider
SegmentId
instances of a given
SegmentStore
and creates new SegmentId
instances on the fly
if required.Modifier and Type | Method and Description |
---|---|
int |
getSegmentIdCount() |
@NotNull SegmentId |
newBulkSegmentId()
Provide a
SegmentId for a segment of type "data". |
@NotNull SegmentId |
newDataSegmentId()
Provide a
SegmentId for a segment of type "bulk". |
@NotNull SegmentId |
newSegmentId(long msb,
long lsb)
Provide a
SegmentId represented by the given MSB/LSB pair. |
int getSegmentIdCount()
@NotNull @NotNull SegmentId newSegmentId(long msb, long lsb)
SegmentId
represented by the given MSB/LSB pair.msb
- The most significant bits of the SegmentId
.lsb
- The least significant bits of the SegmentId
.null
instance of SegmentId
.@NotNull @NotNull SegmentId newDataSegmentId()
SegmentId
for a segment of type "bulk".null
instance of SegmentId
.@NotNull @NotNull SegmentId newBulkSegmentId()
SegmentId
for a segment of type "data".null
instance of SegmentId
.Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.