| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
Region.Builder<K> |
addHeaderEntry(IHeaderDataEntryProvider<?,K> headerEntry) |
Region.Builder<K> |
addSpecialSectorMapEntry(java.lang.Object marker,
int value,
java.util.function.Function<K,java.nio.ByteBuffer> specialReader,
java.util.function.BiConsumer<K,java.nio.ByteBuffer> writeConflictHandler)
Creates a special
IntPackedSectorMap entry type, with custom read function. |
Region<K> |
build() |
Region.Builder<K> |
setDirectory(java.nio.file.Path path) |
Region.Builder<K> |
setKeyProvider(IKeyProvider<K> keyProvider) |
Region.Builder<K> |
setRegionKey(RegionKey key) |
Region.Builder<K> |
setSectorSize(int sectorSize) |
public Region.Builder<K> setDirectory(java.nio.file.Path path)
public Region.Builder<K> setRegionKey(RegionKey key)
public Region.Builder<K> setKeyProvider(IKeyProvider<K> keyProvider)
public Region.Builder<K> setSectorSize(int sectorSize)
public Region.Builder<K> addHeaderEntry(IHeaderDataEntryProvider<?,K> headerEntry)
public Region.Builder<K> addSpecialSectorMapEntry(java.lang.Object marker, int value, java.util.function.Function<K,java.nio.ByteBuffer> specialReader, java.util.function.BiConsumer<K,java.nio.ByteBuffer> writeConflictHandler)
IntPackedSectorMap entry type, with custom read function.
The supplied conflict handler should handle conflicts in such way that the supplied reader will return the previously written value,
or throw an exception is this is not possible.marker - a marker object used to specify writing special valuevalue - the raw int header valuespecialReader - data reader for this special valuewriteConflictHandler - function for handling conflicts when writing real data with the same sectormap value.