Package org.rostore.v2.container
Class ContainerShardDescriptor
java.lang.Object
org.rostore.v2.container.ContainerShardDescriptor
This information meant to be serialized and stored to the
Media
so that the shard can be recreated.-
Constructor Summary
ConstructorDescriptionNeeded for loadContainerShardDescriptor
(long allocatorStartIndex, long keysStartIndex) Creates the descriptor -
Method Summary
Modifier and TypeMethodDescriptionlong
The first block of the allocator's sequencelong
The first block index of the of key catalog's sequence of the shard
-
Constructor Details
-
ContainerShardDescriptor
public ContainerShardDescriptor(long allocatorStartIndex, long keysStartIndex) Creates the descriptor- Parameters:
allocatorStartIndex
- the first block in the shard's allocator sequencekeysStartIndex
- the first block in the shard's key catalog sequence
-
ContainerShardDescriptor
public ContainerShardDescriptor()Needed for load
-
-
Method Details
-
getAllocatorStartIndex
public long getAllocatorStartIndex()The first block of the allocator's sequence- Returns:
- the block index
-
getKeysStartIndex
public long getKeysStartIndex()The first block index of the of key catalog's sequence of the shard- Returns:
- the first index
-