Class IndexInfo
IndexInfo is embedded in the indexed version of RowIndexEntry.
Each instance roughly covers a range of column_index_size KiB
and contains the first and last clustering value (or slice bound), its offset in the data file and width in the data file.
Each IndexInfo object is serialized as follows.
Serialization format changed in 3.0; the endOpenMarker has been introduced and integer fields are
stored using varint encoding.
(*) IndexInfo.firstName (ClusteringPrefix serializer, either Clustering.serializer.serialize or Slice.Bound.serializer.serialize)
(*) IndexInfo.lastName (ClusteringPrefix serializer, either Clustering.serializer.serialize or Slice.Bound.serializer.serialize)
(long) IndexInfo.offset
(long) IndexInfo.width
(bool) IndexInfo.endOpenMarker != null (if 3.0)
(int) (Uint post c14227) IndexInfo.endOpenMarker.localDeletionTime (if 3.0 && IndexInfo.endOpenMarker != null)
(long) IndexInfo.endOpenMarker.markedForDeletionAt (if 3.0 && IndexInfo.endOpenMarker != null)
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longfinal DeletionTimefinal ClusteringPrefix<?>final ClusteringPrefix<?>final longfinal long -
Constructor Summary
ConstructorsConstructorDescriptionIndexInfo(ClusteringPrefix<?> firstName, ClusteringPrefix<?> lastName, long offset, long width, DeletionTime endOpenMarker) -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexInfo.Serializerserializer(Version version, SerializationHeader header) long
-
Field Details
-
EMPTY_SIZE
public static final long EMPTY_SIZE -
offset
public final long offset -
width
public final long width -
firstName
-
lastName
-
endOpenMarker
-
-
Constructor Details
-
IndexInfo
public IndexInfo(ClusteringPrefix<?> firstName, ClusteringPrefix<?> lastName, long offset, long width, DeletionTime endOpenMarker)
-
-
Method Details
-
serializer
-