Package org.apache.cassandra.db.rows
Class AbstractRow
java.lang.Object
org.apache.cassandra.db.rows.AbstractRow
- All Implemented Interfaces:
Iterable<ColumnData>,IMeasurableMemory,Clusterable,Row,Unfiltered
- Direct Known Subclasses:
BTreeRow
Base abstract class for
Row implementations.
Unless you have a very good reason not to, every row implementation
should probably extend this class.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.Row
Row.Builder, Row.Deletion, Row.Merger, Row.SimpleBuilderNested classes/interfaces inherited from interface org.apache.cassandra.db.rows.Unfiltered
Unfiltered.Kind -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDigest the atom using the providedDigest.booleaninthashCode()booleanDo a quick validation of the deletions of the unfiltered (if any)booleanhasLiveData(long nowInSec, boolean enforceStrictLiveness) Whether the row has some live information (i.e.booleanisStatic()Whether the row correspond to a static row or not.kind()The kind of the atom: either row or range tombstone marker.toString()toString(TableMetadata metadata) toString(TableMetadata metadata, boolean fullDetails) toString(TableMetadata metadata, boolean includeClusterKeys, boolean fullDetails) voidvalidateData(TableMetadata metadata) Validate the data of this atom.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.apache.cassandra.db.rows.Row
accumulate, accumulate, accumulate, accumulate, apply, apply, cells, cellsInLegacyOrder, clone, clustering, columnCount, columnData, columns, dataSize, deletion, filter, filter, getCell, getCell, getColumnData, getComplexColumnData, hasComplex, hasComplexDeletion, hasDeletion, isEmpty, markCounterLocalToBeCleared, primaryKeyLivenessInfo, purge, purgeDataOlderThan, searchIterator, transformAndFilter, transformAndFilter, unsharedHeapSize, unsharedHeapSizeExcludingData, updateAllTimestamp, withOnlyQueriedData, withRowDeletionMethods inherited from interface org.apache.cassandra.db.rows.Unfiltered
isRangeTombstoneMarker, isRow
-
Constructor Details
-
AbstractRow
public AbstractRow()
-
-
Method Details
-
kind
Description copied from interface:UnfilteredThe kind of the atom: either row or range tombstone marker.- Specified by:
kindin interfaceUnfiltered
-
hasLiveData
public boolean hasLiveData(long nowInSec, boolean enforceStrictLiveness) Description copied from interface:RowWhether the row has some live information (i.e. it's not just deletion informations).- Specified by:
hasLiveDatain interfaceRow- Parameters:
nowInSec- the current time to decide what is deleted and what isn'tenforceStrictLiveness- whether the row should be purged if there is no PK liveness info, normally retrieved fromTableMetadata.enforceStrictLiveness()- Returns:
- true if there is some live information
-
isStatic
public boolean isStatic()Description copied from interface:RowWhether the row correspond to a static row or not. -
digest
Description copied from interface:UnfilteredDigest the atom using the providedDigest.- Specified by:
digestin interfaceUnfiltered- Parameters:
digest- the to use.
-
validateData
Description copied from interface:UnfilteredValidate the data of this atom.- Specified by:
validateDatain interfaceUnfiltered- Parameters:
metadata- the metadata for the table this atom is part of.
-
hasInvalidDeletions
public boolean hasInvalidDeletions()Description copied from interface:UnfilteredDo a quick validation of the deletions of the unfiltered (if any)- Specified by:
hasInvalidDeletionsin interfaceUnfiltered- Returns:
- true if any deletion is invalid
-
toString
-
toString
- Specified by:
toStringin interfaceUnfiltered
-
toString
- Specified by:
toStringin interfaceRow- Specified by:
toStringin interfaceUnfiltered
-
toString
- Specified by:
toStringin interfaceUnfiltered
-
equals
-
hashCode
public int hashCode()
-