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:
IMeasurableMemory,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.MergerNested 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
ConstructorsConstructorDescriptionRangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion) -
Method Summary
Modifier and TypeMethodDescriptionclone(ByteBufferCloner cloner) closeBound(boolean reversed) closeDeletionTime(boolean reversed) booleancloseIsInclusive(boolean reversed) createCorrespondingCloseMarker(boolean reversed) createCorrespondingOpenMarker(boolean reversed) voidDigest the atom using the providedDigest.The deletion time for the range tombstone this boundary ends (in clustering order).booleanstatic <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()booleanDo 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> RangeTombstoneBoundaryMarker makeBoundary(boolean reversed, ClusteringBound<V1> close, ClusteringBound<V2> open, DeletionTime closeDeletion, DeletionTime openDeletion) openBound(boolean reversed) openDeletionTime(boolean reversed) booleanopenIsInclusive(boolean reversed) The deletion time for the range tombstone this boundary starts (in clustering order).toString(TableMetadata metadata) longwithNewOpeningDeletionTime(boolean reversed, DeletionTime newDeletionTime) Methods inherited from class org.apache.cassandra.db.rows.AbstractRangeTombstoneMarker
clustering, isBoundary, kind, toString, toString, validateDataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.db.rows.RangeTombstoneMarker
isEmptyMethods inherited from interface org.apache.cassandra.db.rows.Unfiltered
isRangeTombstoneMarker, isRow
-
Constructor Details
-
RangeTombstoneBoundaryMarker
public RangeTombstoneBoundaryMarker(ClusteringBoundary<?> bound, DeletionTime endDeletion, DeletionTime startDeletion)
-
-
Method Details
-
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
The deletion time for the range tombstone this boundary ends (in clustering order). -
startDeletionTime
The deletion time for the range tombstone this boundary starts (in clustering order). -
closeDeletionTime
-
openDeletionTime
-
openIsInclusive
public boolean openIsInclusive(boolean reversed) -
openBound
-
closeBound
-
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
-
clone
-
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
-
createCorrespondingOpenMarker
-
digest
Description copied from interface:UnfilteredDigest the atom using the providedDigest.- Parameters:
digest- the to use.
-
toString
-
equals
-
hashCode
public int hashCode()
-