Package org.apache.cassandra.db.rows
Interface Unfiltered
- All Superinterfaces:
Clusterable
- All Known Subinterfaces:
RangeTombstoneMarker,Row
- All Known Implementing Classes:
AbstractRangeTombstoneMarker,AbstractRow,ArtificialBoundMarker,BTreeRow,RangeTombstoneBoundaryMarker,RangeTombstoneBoundMarker,RowWithSource
Unfiltered is the common class for the main constituent of an unfiltered partition.
In practice, an Unfiltered is either a row or a range tombstone marker. Unfiltereds are uniquely identified by their clustering information and can be sorted according to those. We don't set the type parameter for Clusterable here because it doesn't make sense in the context of an Unfiltered. Merge iterators can produce rows containing clustering and cell values with multiple backing types. Also, by the time you're dealing with Unfiltered objects, the backing type should be considered opaque.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidDigest the atom using the providedDigest.booleanDo a quick validation of the deletions of the unfiltered (if any)booleanisEmpty()default booleandefault booleanisRow()kind()The kind of the atom: either row or range tombstone marker.toString(TableMetadata metadata) toString(TableMetadata metadata, boolean fullDetails) toString(TableMetadata metadata, boolean includeClusterKeys, boolean fullDetails) voidvalidateData(TableMetadata metadata) Validate the data of this atom.
-
Method Details
-
kind
Unfiltered.Kind kind()The kind of the atom: either row or range tombstone marker. -
clustering
ClusteringPrefix<?> clustering()- Specified by:
clusteringin interfaceClusterable
-
digest
Digest the atom using the providedDigest.- Parameters:
digest- the to use.
-
validateData
Validate the data of this atom.- Parameters:
metadata- the metadata for the table this atom is part of.- Throws:
MarshalException- if some of the data in this atom is invalid (some value is invalid for its column type, or some field is nonsensical).
-
hasInvalidDeletions
boolean hasInvalidDeletions()Do a quick validation of the deletions of the unfiltered (if any)- Returns:
- true if any deletion is invalid
-
isEmpty
boolean isEmpty() -
toString
-
toString
-
toString
-
isRow
default boolean isRow() -
isRangeTombstoneMarker
default boolean isRangeTombstoneMarker()
-