org.apache.cassandra.service
Class SlicePredicate
java.lang.Object
org.apache.cassandra.service.SlicePredicate
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SlicePredicate>, org.apache.thrift.TBase
public class SlicePredicate
- extends java.lang.Object
- implements org.apache.thrift.TBase, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<SlicePredicate>
A SlicePredicate is similar to a mathematic predicate (see http://en.wikipedia.org/wiki/Predicate_(mathematical_logic)),
which is described as "a property that the elements of a set have in common."
SlicePredicate's in Cassandra are described with either a list of column_names or a SliceRange. If column_names is
specified, slice_range is ignored.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
column_names
public java.util.List<byte[]> column_names
slice_range
public SliceRange slice_range
COLUMN_NAMES
public static final int COLUMN_NAMES
- See Also:
- Constant Field Values
SLICE_RANGE
public static final int SLICE_RANGE
- See Also:
- Constant Field Values
metaDataMap
public static final java.util.Map<java.lang.Integer,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
SlicePredicate
public SlicePredicate()
SlicePredicate
public SlicePredicate(java.util.List<byte[]> column_names,
SliceRange slice_range)
SlicePredicate
public SlicePredicate(SlicePredicate other)
- Performs a deep copy on other.
deepCopy
public SlicePredicate deepCopy()
- Specified by:
deepCopy
in interface org.apache.thrift.TBase
clone
@Deprecated
public SlicePredicate clone()
- Deprecated.
- Overrides:
clone
in class java.lang.Object
getColumn_namesSize
public int getColumn_namesSize()
getColumn_namesIterator
public java.util.Iterator<byte[]> getColumn_namesIterator()
addToColumn_names
public void addToColumn_names(byte[] elem)
getColumn_names
public java.util.List<byte[]> getColumn_names()
setColumn_names
public SlicePredicate setColumn_names(java.util.List<byte[]> column_names)
unsetColumn_names
public void unsetColumn_names()
isSetColumn_names
public boolean isSetColumn_names()
setColumn_namesIsSet
public void setColumn_namesIsSet(boolean value)
getSlice_range
public SliceRange getSlice_range()
setSlice_range
public SlicePredicate setSlice_range(SliceRange slice_range)
unsetSlice_range
public void unsetSlice_range()
isSetSlice_range
public boolean isSetSlice_range()
setSlice_rangeIsSet
public void setSlice_rangeIsSet(boolean value)
setFieldValue
public void setFieldValue(int fieldID,
java.lang.Object value)
- Specified by:
setFieldValue
in interface org.apache.thrift.TBase
getFieldValue
public java.lang.Object getFieldValue(int fieldID)
- Specified by:
getFieldValue
in interface org.apache.thrift.TBase
isSet
public boolean isSet(int fieldID)
- Specified by:
isSet
in interface org.apache.thrift.TBase
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in class java.lang.Object
equals
public boolean equals(SlicePredicate that)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
compareTo
public int compareTo(SlicePredicate other)
- Specified by:
compareTo
in interface java.lang.Comparable<SlicePredicate>
read
public void read(org.apache.thrift.protocol.TProtocol iprot)
throws org.apache.thrift.TException
- Specified by:
read
in interface org.apache.thrift.TBase
- Throws:
org.apache.thrift.TException
write
public void write(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
write
in interface org.apache.thrift.TBase
- Throws:
org.apache.thrift.TException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
validate
public void validate()
throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
Copyright © 2010 The Apache Software Foundation