Class 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 for Row implementations. Unless you have a very good reason not to, every row implementation should probably extend this class.
    • Constructor Detail

      • AbstractRow

        public AbstractRow()
    • Method Detail

      • 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 {@see Digest} 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object