public class IndexInfo
extends java.lang.Object
IndexInfo
is embedded in the indexed version of RowIndexEntry
.
Each instance roughly covers a range of column_index_size_in_kb
kB
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) IndexInfo.endOpenMarker.localDeletionTime (if 3.0 && IndexInfo.endOpenMarker != null)
(long) IndexInfo.endOpenMarker.markedForDeletionAt (if 3.0 && IndexInfo.endOpenMarker != null)
Modifier and Type | Class and Description |
---|---|
static class |
IndexInfo.Serializer |
Modifier and Type | Field and Description |
---|---|
DeletionTime |
endOpenMarker |
ClusteringPrefix<?> |
firstName |
ClusteringPrefix<?> |
lastName |
long |
offset |
long |
width |
Constructor and Description |
---|
IndexInfo(ClusteringPrefix<?> firstName,
ClusteringPrefix<?> lastName,
long offset,
long width,
DeletionTime endOpenMarker) |
Modifier and Type | Method and Description |
---|---|
static IndexInfo.Serializer |
serializer(Version version,
SerializationHeader header) |
long |
unsharedHeapSize() |
public final long offset
public final long width
public final ClusteringPrefix<?> firstName
public final ClusteringPrefix<?> lastName
public final DeletionTime endOpenMarker
public IndexInfo(ClusteringPrefix<?> firstName, ClusteringPrefix<?> lastName, long offset, long width, DeletionTime endOpenMarker)
public static IndexInfo.Serializer serializer(Version version, SerializationHeader header)
public long unsharedHeapSize()
Copyright © 2009- The Apache Software Foundation