Class AbstractRow

java.lang.Object
org.apache.cassandra.db.rows.AbstractRow
All Implemented Interfaces:
Iterable<ColumnData>, IMeasurableMemory, Clusterable, Row, Unfiltered
Direct Known Subclasses:
BTreeRow

public abstract class AbstractRow extends Object implements Row
Base abstract class for Row implementations. Unless you have a very good reason not to, every row implementation should probably extend this class.
  • Constructor Details

    • AbstractRow

      public AbstractRow()
  • Method Details

    • kind

      public Unfiltered.Kind kind()
      Description copied from interface: Unfiltered
      The kind of the atom: either row or range tombstone marker.
      Specified by:
      kind in interface Unfiltered
    • hasLiveData

      public boolean hasLiveData(long nowInSec, boolean enforceStrictLiveness)
      Description copied from interface: Row
      Whether the row has some live information (i.e. it's not just deletion informations).
      Specified by:
      hasLiveData in interface Row
      Parameters:
      nowInSec - the current time to decide what is deleted and what isn't
      enforceStrictLiveness - whether the row should be purged if there is no PK liveness info, normally retrieved from TableMetadata.enforceStrictLiveness()
      Returns:
      true if there is some live information
    • isStatic

      public boolean isStatic()
      Description copied from interface: Row
      Whether the row correspond to a static row or not.
      Specified by:
      isStatic in interface Row
      Returns:
      whether the row correspond to a static row or not.
    • digest

      public void digest(Digest digest)
      Description copied from interface: Unfiltered
      Digest the atom using the provided Digest.
      Specified by:
      digest in interface Unfiltered
      Parameters:
      digest - the to use.
    • validateData

      public void validateData(TableMetadata metadata)
      Description copied from interface: Unfiltered
      Validate the data of this atom.
      Specified by:
      validateData in interface Unfiltered
      Parameters:
      metadata - the metadata for the table this atom is part of.
    • hasInvalidDeletions

      public boolean hasInvalidDeletions()
      Description copied from interface: Unfiltered
      Do a quick validation of the deletions of the unfiltered (if any)
      Specified by:
      hasInvalidDeletions in interface Unfiltered
      Returns:
      true if any deletion is invalid
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(TableMetadata metadata)
      Specified by:
      toString in interface Unfiltered
    • toString

      public String toString(TableMetadata metadata, boolean fullDetails)
      Specified by:
      toString in interface Row
      Specified by:
      toString in interface Unfiltered
    • toString

      public String toString(TableMetadata metadata, boolean includeClusterKeys, boolean fullDetails)
      Specified by:
      toString in interface Unfiltered
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object