Class ContainerShardDescriptor

java.lang.Object
org.rostore.v2.container.ContainerShardDescriptor

public class ContainerShardDescriptor extends Object
This information meant to be serialized and stored to the Media so that the shard can be recreated.
  • Constructor Details

    • ContainerShardDescriptor

      public ContainerShardDescriptor(long allocatorStartIndex, long keysStartIndex)
      Creates the descriptor
      Parameters:
      allocatorStartIndex - the first block in the shard's allocator sequence
      keysStartIndex - 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