org.apache.cassandra.db.filter
Class ColumnSlice
java.lang.Object
org.apache.cassandra.db.filter.ColumnSlice
public class ColumnSlice
- extends java.lang.Object
Constructor Summary |
ColumnSlice(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
serializer
public static final ColumnSlice.Serializer serializer
ALL_COLUMNS
public static final ColumnSlice ALL_COLUMNS
ALL_COLUMNS_ARRAY
public static final ColumnSlice[] ALL_COLUMNS_ARRAY
start
public final java.nio.ByteBuffer start
finish
public final java.nio.ByteBuffer finish
ColumnSlice
public ColumnSlice(java.nio.ByteBuffer start,
java.nio.ByteBuffer finish)
validate
public static void validate(ColumnSlice[] slices,
AbstractType<?> comparator,
boolean reversed)
- Validate an array of column slices.
To be valid, the slices must be sorted and non-overlapping and each slice must be valid.
- Throws:
java.lang.IllegalArgumentException
- if the input slices are not valid.
validate
public static void validate(ColumnSlice slice,
AbstractType<?> comparator,
boolean reversed)
- Validate a column slices.
To be valid, the slice start must sort before the slice end.
- Throws:
java.lang.IllegalArgumentException
- if the slice is not valid.
includes
public boolean includes(java.util.Comparator<java.nio.ByteBuffer> cmp,
java.nio.ByteBuffer name)
hashCode
public final int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2013 The Apache Software Foundation