Package org.apache.cassandra.db.rows
Class AbstractRow
- java.lang.Object
-
- org.apache.cassandra.db.rows.AbstractRow
-
- All Implemented Interfaces:
java.lang.Iterable<ColumnData>,IMeasurableMemory,Clusterable,Row,Unfiltered
- Direct Known Subclasses:
BTreeRow
public abstract class AbstractRow extends java.lang.Object implements Row
Base abstract class forRowimplementations. 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.SimpleBuilder
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.Unfiltered
Unfiltered.Kind
-
-
Constructor Summary
Constructors Constructor Description AbstractRow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddigest(Digest digest)Digest the atom using the providedDigest.booleanequals(java.lang.Object other)inthashCode()booleanhasInvalidDeletions()Do a quick validation of the deletions of the unfiltered (if any)booleanhasLiveData(int nowInSec, boolean enforceStrictLiveness)Whether the row has some live information (i.e.booleanisStatic()Whether the row correspond to a static row or not.Unfiltered.Kindkind()The kind of the atom: either row or range tombstone marker.java.lang.StringtoString()java.lang.StringtoString(TableMetadata metadata)java.lang.StringtoString(TableMetadata metadata, boolean fullDetails)java.lang.StringtoString(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, wait
-
Methods 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, withRowDeletion
-
Methods inherited from interface org.apache.cassandra.db.rows.Unfiltered
isRangeTombstoneMarker, isRow
-
-
-
-
Method Detail
-
kind
public Unfiltered.Kind kind()
Description copied from interface:UnfilteredThe kind of the atom: either row or range tombstone marker.- Specified by:
kindin interfaceUnfiltered
-
hasLiveData
public boolean hasLiveData(int 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
public void digest(Digest digest)
Description copied from interface:UnfilteredDigest the atom using the providedDigest.- Specified by:
digestin interfaceUnfiltered- Parameters:
digest- the {@see Digest} to use.
-
validateData
public void validateData(TableMetadata metadata)
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
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toString
public java.lang.String toString(TableMetadata metadata)
- Specified by:
toStringin interfaceUnfiltered
-
toString
public java.lang.String toString(TableMetadata metadata, boolean fullDetails)
- Specified by:
toStringin interfaceRow- Specified by:
toStringin interfaceUnfiltered
-
toString
public java.lang.String toString(TableMetadata metadata, boolean includeClusterKeys, boolean fullDetails)
- Specified by:
toStringin interfaceUnfiltered
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-