Class ContainerListHeader

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

public class ContainerListHeader extends Object
This class is serialized and stored in the media header at the time of Media creation.

This data can't be changed after the media is created.

  • Constructor Details

    • ContainerListHeader

      public ContainerListHeader(ContainerListProperties containerListProperties)
    • ContainerListHeader

      public ContainerListHeader()
      Is used by the serializer/deserializer
  • Method Details

    • getKeyStartIndex

      public long getKeyStartIndex()
      The start block index, the index where the container key sequence is stored.

      It is assigned when the storage is created and stays permanent.

      Returns:
      the index of container's list first block
    • setKeyStartIndex

      public void setKeyStartIndex(long keyStartIndex)
      Assigned at the media creation.
      Parameters:
      keyStartIndex - the first block of the container's list
    • getContainerListProperties

      public ContainerListProperties getContainerListProperties()
      The list container's list properties defined at the creation phase, which steers the container's list properties
      Returns:
      the properties of container's list