Class IndexInfo
- java.lang.Object
-
- org.apache.cassandra.io.sstable.IndexInfo
-
public class IndexInfo extends java.lang.ObjectIndexInfois embedded in the indexed version ofRowIndexEntry. Each instance roughly covers a range ofcolumn_index_sizeKiB and contains the first and last clustering value (or slice bound), its offset in the data file and width in the data file.Each
IndexInfoobject is serialized as follows.Serialization format changed in 3.0; the
endOpenMarkerhas 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) IndexInfo.endOpenMarker.localDeletionTime (if 3.0 && IndexInfo.endOpenMarker != null) (long) IndexInfo.endOpenMarker.markedForDeletionAt (if 3.0 && IndexInfo.endOpenMarker != null)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexInfo.Serializer
-
Field Summary
Fields Modifier and Type Field Description static longEMPTY_SIZEDeletionTimeendOpenMarkerClusteringPrefix<?>firstNameClusteringPrefix<?>lastNamelongoffsetlongwidth
-
Constructor Summary
Constructors Constructor Description IndexInfo(ClusteringPrefix<?> firstName, ClusteringPrefix<?> lastName, long offset, long width, DeletionTime endOpenMarker)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexInfo.Serializerserializer(Version version, SerializationHeader header)longunsharedHeapSize()
-
-
-
Field Detail
-
EMPTY_SIZE
public static final long EMPTY_SIZE
-
offset
public final long offset
-
width
public final long width
-
firstName
public final ClusteringPrefix<?> firstName
-
lastName
public final ClusteringPrefix<?> lastName
-
endOpenMarker
public final DeletionTime endOpenMarker
-
-
Constructor Detail
-
IndexInfo
public IndexInfo(ClusteringPrefix<?> firstName, ClusteringPrefix<?> lastName, long offset, long width, DeletionTime endOpenMarker)
-
-
Method Detail
-
serializer
public static IndexInfo.Serializer serializer(Version version, SerializationHeader header)
-
unsharedHeapSize
public long unsharedHeapSize()
-
-