Package org.apache.cassandra.db.rows
Class RangeTombstoneBoundaryMarker
- java.lang.Object
-
- org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
- org.apache.cassandra.db.rows.RangeTombstoneBoundaryMarker
-
- All Implemented Interfaces:
Clusterable,RangeTombstoneMarker,Unfiltered
public class RangeTombstoneBoundaryMarker extends AbstractRangeTombstoneMarker<ClusteringBoundary<?>>
A range tombstone marker that represents a boundary between 2 range tombstones (i.e. it closes one range and open another).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.RangeTombstoneMarker
RangeTombstoneMarker.Merger
-
Nested classes/interfaces inherited from interface org.apache.cassandra.db.rows.Unfiltered
Unfiltered.Kind
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker
bound
-
-
Constructor Summary
Constructors Constructor Description RangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusteringBound<?>closeBound(boolean reversed)DeletionTimecloseDeletionTime(boolean reversed)booleancloseIsInclusive(boolean reversed)RangeTombstoneBoundaryMarkercopy(AbstractAllocator allocator)RangeTombstoneBoundMarkercreateCorrespondingCloseMarker(boolean reversed)RangeTombstoneBoundMarkercreateCorrespondingOpenMarker(boolean reversed)voiddigest(Digest digest)Digest the atom using the providedDigest.DeletionTimeendDeletionTime()The deletion time for the range tombstone this boundary ends (in clustering order).booleanequals(java.lang.Object other)static <V> RangeTombstoneBoundaryMarkerexclusiveCloseInclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)static <V> RangeTombstoneBoundaryMarkerexclusiveCloseInclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)inthashCode()booleanhasInvalidDeletions()Do a quick validation of the deletions of the unfiltered (if any)static <V> RangeTombstoneBoundaryMarkerinclusiveCloseExclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)static <V> RangeTombstoneBoundaryMarkerinclusiveCloseExclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)booleanisClose(boolean reversed)booleanisOpen(boolean reversed)static <V1,V2>
RangeTombstoneBoundaryMarkermakeBoundary(boolean reversed, ClusteringBound<V1> close, ClusteringBound<V2> open, DeletionTime closeDeletion, DeletionTime openDeletion)ClusteringBound<?>openBound(boolean reversed)DeletionTimeopenDeletionTime(boolean reversed)booleanopenIsInclusive(boolean reversed)DeletionTimestartDeletionTime()The deletion time for the range tombstone this boundary starts (in clustering order).java.lang.StringtoString(TableMetadata metadata)RangeTombstoneBoundaryMarkerwithNewOpeningDeletionTime(boolean reversed, DeletionTime newDeletionTime)-
Methods inherited from class org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker
clustering, isBoundary, kind, toString, toString, validateData
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.db.rows.RangeTombstoneMarker
isEmpty
-
Methods inherited from interface org.apache.cassandra.db.rows.Unfiltered
isRangeTombstoneMarker, isRow
-
-
-
-
Constructor Detail
-
RangeTombstoneBoundaryMarker
public RangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion)
-
-
Method Detail
-
exclusiveCloseInclusiveOpen
public static <V> RangeTombstoneBoundaryMarker exclusiveCloseInclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)
-
exclusiveCloseInclusiveOpen
public static <V> RangeTombstoneBoundaryMarker exclusiveCloseInclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)
-
inclusiveCloseExclusiveOpen
public static <V> RangeTombstoneBoundaryMarker inclusiveCloseExclusiveOpen(boolean reversed, V[] boundValues, ValueAccessor<V> accessor, DeletionTime closeDeletion, DeletionTime openDeletion)
-
inclusiveCloseExclusiveOpen
public static <V> RangeTombstoneBoundaryMarker inclusiveCloseExclusiveOpen(boolean reversed, ClusteringPrefix<V> from, DeletionTime closeDeletion, DeletionTime openDeletion)
-
endDeletionTime
public DeletionTime endDeletionTime()
The deletion time for the range tombstone this boundary ends (in clustering order).
-
startDeletionTime
public DeletionTime startDeletionTime()
The deletion time for the range tombstone this boundary starts (in clustering order).
-
closeDeletionTime
public DeletionTime closeDeletionTime(boolean reversed)
-
openDeletionTime
public DeletionTime openDeletionTime(boolean reversed)
-
openIsInclusive
public boolean openIsInclusive(boolean reversed)
-
openBound
public ClusteringBound<?> openBound(boolean reversed)
-
closeBound
public ClusteringBound<?> closeBound(boolean reversed)
-
closeIsInclusive
public boolean closeIsInclusive(boolean reversed)
-
isOpen
public boolean isOpen(boolean reversed)
- Specified by:
isOpenin interfaceRangeTombstoneMarker- Overrides:
isOpenin classAbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
isClose
public boolean isClose(boolean reversed)
- Specified by:
isClosein interfaceRangeTombstoneMarker- Overrides:
isClosein classAbstractRangeTombstoneMarker<ClusteringBoundary<?>>
-
hasInvalidDeletions
public boolean hasInvalidDeletions()
Description copied from interface:UnfilteredDo a quick validation of the deletions of the unfiltered (if any)- Returns:
- true if any deletion is invalid
-
copy
public RangeTombstoneBoundaryMarker copy(AbstractAllocator allocator)
-
withNewOpeningDeletionTime
public RangeTombstoneBoundaryMarker withNewOpeningDeletionTime(boolean reversed, DeletionTime newDeletionTime)
-
makeBoundary
public static <V1,V2> RangeTombstoneBoundaryMarker makeBoundary(boolean reversed, ClusteringBound<V1> close, ClusteringBound<V2> open, DeletionTime closeDeletion, DeletionTime openDeletion)
-
createCorrespondingCloseMarker
public RangeTombstoneBoundMarker createCorrespondingCloseMarker(boolean reversed)
-
createCorrespondingOpenMarker
public RangeTombstoneBoundMarker createCorrespondingOpenMarker(boolean reversed)
-
digest
public void digest(Digest digest)
Description copied from interface:UnfilteredDigest the atom using the providedDigest.- Parameters:
digest- the {@see Digest} to use.
-
toString
public java.lang.String toString(TableMetadata metadata)
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-