public static class SegmentDescriptor.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SegmentDescriptor |
build()
Builds the segment descriptor.
|
SegmentDescriptor.Builder |
withId(long id)
Sets the segment identifier.
|
SegmentDescriptor.Builder |
withIndex(long index)
Sets the segment index.
|
SegmentDescriptor.Builder |
withMaxEntries(int maxEntries)
Sets the maximum number of entries in the segment.
|
SegmentDescriptor.Builder |
withMaxSegmentSize(long maxSegmentSize)
Sets maximum count of the segment.
|
SegmentDescriptor.Builder |
withVersion(long version)
Sets the segment version.
|
public SegmentDescriptor.Builder withId(long id)
id - The segment identifier.public SegmentDescriptor.Builder withVersion(long version)
version - The segment version.public SegmentDescriptor.Builder withIndex(long index)
index - The segment starting index.public SegmentDescriptor.Builder withMaxSegmentSize(long maxSegmentSize)
maxSegmentSize - The maximum count of the segment.public SegmentDescriptor.Builder withMaxEntries(int maxEntries)
maxEntries - The maximum number of entries in the segment.public SegmentDescriptor build()
Copyright © 2013–2016. All rights reserved.