Package org.rostore.v2.container
Class ContainerListHeader
java.lang.Object
org.rostore.v2.container.ContainerListHeader
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 Summary
ConstructorDescriptionIs used by the serializer/deserializerContainerListHeader
(ContainerListProperties containerListProperties) -
Method Summary
Modifier and TypeMethodDescriptionThe list container's list properties defined at the creation phase, which steers the container's list propertieslong
The start block index, the index where the container key sequence is stored.void
setKeyStartIndex
(long keyStartIndex) Assigned at the media creation.
-
Constructor Details
-
ContainerListHeader
-
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
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
-