|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.scale7.cassandra.pelops.Operand
org.scale7.cassandra.pelops.Selector
public class Selector
Facilitates the selective retrieval of column data from rows in a Cassandra keyspace.
Note:The methods that are marked as throwing NotFoundException
are the only methods in Pelops that throw exceptions under non-failure conditions.
Nested Class Summary | |
---|---|
static class |
Selector.OrderType
Deprecated. |
Nested classes/interfaces inherited from class org.scale7.cassandra.pelops.Operand |
---|
Operand.IOperation<ReturnType> |
Field Summary |
---|
Fields inherited from class org.scale7.cassandra.pelops.Operand |
---|
thrift |
Constructor Summary | |
---|---|
Selector(IThriftPool thrift)
Create a batch mutation operation. |
Method Summary | |
---|---|
static boolean |
columnExists(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName)
Determines if a column with a particular name exist in the list of columns. |
static boolean |
columnExists(List<org.apache.cassandra.thrift.Column> columns,
String colName)
Determines if a column with a particular name exist in the list of columns. |
int |
getColumnCount(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of columns in a row. |
int |
getColumnCount(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of columns in a row. |
int |
getColumnCount(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of columns in a row. |
int |
getColumnCount(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of columns in a row. |
org.apache.cassandra.thrift.Column |
getColumnFromRow(String columnFamily,
Bytes rowKey,
Bytes colName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a column from a row. |
org.apache.cassandra.thrift.Column |
getColumnFromRow(String columnFamily,
String rowKey,
Bytes colName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a column from a row. |
org.apache.cassandra.thrift.Column |
getColumnFromRow(String columnFamily,
String rowKey,
String colName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a column from a row. |
List<org.apache.cassandra.thrift.Column> |
getColumnsFromRow(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a row. |
List<org.apache.cassandra.thrift.Column> |
getColumnsFromRow(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a row. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getColumnsFromRows(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a range of rows. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getColumnsFromRows(String columnFamily,
List<Bytes> rowKeys,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a set of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getColumnsFromRowsUtf8Keys(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a range of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getColumnsFromRowsUtf8Keys(String columnFamily,
List<String> rowKeys,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a set of rows. |
static String |
getColumnStringName(org.apache.cassandra.thrift.Column column)
Get the name of a column as a UTF8 string |
static String |
getColumnStringValue(org.apache.cassandra.thrift.Column column)
Get the value of a column as a UTF8 string |
static String |
getColumnStringValue(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName)
Get the value of a column in a list of columns |
static String |
getColumnStringValue(List<org.apache.cassandra.thrift.Column> columns,
String colName)
Get the value of a column in a list of columns |
static long |
getColumnTimestamp(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName)
Get the time stamp of a column in a list of columns. |
static long |
getColumnTimestamp(List<org.apache.cassandra.thrift.Column> columns,
String colName)
Get the time stamp of a column in a list of columns. |
static Bytes |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName)
Get the value of a column in a list of columns |
static Bytes |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName,
Bytes defaultValue)
Get the value of a column in a list of columns |
static String |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
Bytes colName,
String defaultValue)
Get the value of a column in a list of columns |
static Bytes |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
String colName)
Get the value of a column in a list of columns |
static Bytes |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
String colName,
Bytes defaultValue)
Get the value of a column in a list of columns |
static String |
getColumnValue(List<org.apache.cassandra.thrift.Column> columns,
String colName,
String defaultValue)
Get the value of a column in a list of columns |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getIndexedColumns(org.apache.cassandra.thrift.ColumnParent colParent,
org.apache.cassandra.thrift.IndexClause indexClause,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a range of indexed rows using its secondary index. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getIndexedColumns(String colParent,
org.apache.cassandra.thrift.IndexClause indexClause,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve columns from a range of indexed rows using its secondary index. |
List<org.apache.cassandra.thrift.Column> |
getPageOfColumnsFromRow(String columnFamily,
Bytes rowKey,
Bytes startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of columns composed from a segment of the sequence of columns in a row. |
List<org.apache.cassandra.thrift.Column> |
getPageOfColumnsFromRow(String columnFamily,
Bytes rowKey,
String startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of columns composed from a segment of the sequence of columns in a row. |
List<org.apache.cassandra.thrift.Column> |
getPageOfColumnsFromRow(String columnFamily,
String rowKey,
Bytes startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of columns composed from a segment of the sequence of columns in a row. |
List<org.apache.cassandra.thrift.Column> |
getPageOfColumnsFromRow(String columnFamily,
String rowKey,
String startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of columns composed from a segment of the sequence of columns in a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getPageOfSuperColumnsFromRow(String columnFamily,
Bytes rowKey,
Bytes startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of super columns composed from a segment of the sequence of super columns in a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getPageOfSuperColumnsFromRow(String columnFamily,
Bytes rowKey,
String startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of super columns composed from a segment of the sequence of super columns in a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getPageOfSuperColumnsFromRow(String columnFamily,
String rowKey,
Bytes startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of super columns composed from a segment of the sequence of super columns in a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getPageOfSuperColumnsFromRow(String columnFamily,
String rowKey,
String startBeyondName,
boolean reversed,
int count,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a page of super columns composed from a segment of the sequence of super columns in a row. |
int |
getSubColumnCount(String columnFamily,
Bytes rowKey,
Bytes superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
Bytes rowKey,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
Bytes rowKey,
String superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
Bytes rowKey,
String superColName,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
String rowKey,
Bytes superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
String rowKey,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
String rowKey,
String superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
int |
getSubColumnCount(String columnFamily,
String rowKey,
String superColName,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of sub-columns inside a super column in a row. |
org.apache.cassandra.thrift.Column |
getSubColumnFromRow(String columnFamily,
Bytes rowKey,
Bytes superColName,
Bytes subColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a sub column from a super column in a row. |
org.apache.cassandra.thrift.Column |
getSubColumnFromRow(String columnFamily,
String rowKey,
Bytes superColName,
Bytes subColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a sub column from a super column in a row. |
org.apache.cassandra.thrift.Column |
getSubColumnFromRow(String columnFamily,
String rowKey,
Bytes superColName,
String subColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a sub column from a super column in a row. |
org.apache.cassandra.thrift.Column |
getSubColumnFromRow(String columnFamily,
String rowKey,
String superColName,
Bytes subColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a sub column from a super column in a row. |
org.apache.cassandra.thrift.Column |
getSubColumnFromRow(String columnFamily,
String rowKey,
String superColName,
String subColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a sub column from a super column in a row. |
List<org.apache.cassandra.thrift.Column> |
getSubColumnsFromRow(String columnFamily,
Bytes rowKey,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a row. |
List<org.apache.cassandra.thrift.Column> |
getSubColumnsFromRow(String columnFamily,
String rowKey,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a row. |
List<org.apache.cassandra.thrift.Column> |
getSubColumnsFromRow(String columnFamily,
String rowKey,
String superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a row. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRows(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a range of rows. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRows(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
String superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a range of rows. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRows(String columnFamily,
List<Bytes> rowKeys,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a set of rows. |
Map<Bytes,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRows(String columnFamily,
List<Bytes> rowKeys,
String superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a set of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRowsUtf8Keys(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a range of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRowsUtf8Keys(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
String superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a range of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRowsUtf8Keys(String columnFamily,
List<String> rowKeys,
Bytes superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a set of rows. |
Map<String,List<org.apache.cassandra.thrift.Column>> |
getSubColumnsFromRowsUtf8Keys(String columnFamily,
List<String> rowKeys,
String superColName,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve sub-columns from a super column in a set of rows. |
static org.apache.cassandra.thrift.SuperColumn |
getSuperColumn(List<org.apache.cassandra.thrift.SuperColumn> superColumns,
Bytes superColName)
Get a super column by name from a list of super columns |
static org.apache.cassandra.thrift.SuperColumn |
getSuperColumn(List<org.apache.cassandra.thrift.SuperColumn> superColumns,
String superColName)
Get a super column by name from a list of super columns |
int |
getSuperColumnCount(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of super columns in a row. |
int |
getSuperColumnCount(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of super columns in a row. |
int |
getSuperColumnCount(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of super columns in a row. |
int |
getSuperColumnCount(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.SlicePredicate predicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Get the count of super columns in a row. |
org.apache.cassandra.thrift.SuperColumn |
getSuperColumnFromRow(String columnFamily,
Bytes rowKey,
Bytes superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a super column from a row. |
org.apache.cassandra.thrift.SuperColumn |
getSuperColumnFromRow(String columnFamily,
String rowKey,
Bytes superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a super column from a row. |
org.apache.cassandra.thrift.SuperColumn |
getSuperColumnFromRow(String columnFamily,
String rowKey,
String superColName,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve a super column from a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getSuperColumnsFromRow(String columnFamily,
Bytes rowKey,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a row. |
List<org.apache.cassandra.thrift.SuperColumn> |
getSuperColumnsFromRow(String columnFamily,
String rowKey,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a row. |
Map<Bytes,List<org.apache.cassandra.thrift.SuperColumn>> |
getSuperColumnsFromRows(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a range of rows. |
Map<Bytes,List<org.apache.cassandra.thrift.SuperColumn>> |
getSuperColumnsFromRows(String columnFamily,
List<Bytes> rowKeys,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a set of rows. |
Map<String,List<org.apache.cassandra.thrift.SuperColumn>> |
getSuperColumnsFromRowsUtf8Keys(String columnFamily,
org.apache.cassandra.thrift.KeyRange keyRange,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a range of rows. |
Map<String,List<org.apache.cassandra.thrift.SuperColumn>> |
getSuperColumnsFromRowsUtf8Keys(String columnFamily,
List<String> rowKeys,
org.apache.cassandra.thrift.SlicePredicate colPredicate,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Retrieve super columns from a set of rows. |
Iterator<org.apache.cassandra.thrift.Column> |
iterateColumnsFromRow(String columnFamily,
Bytes rowKey,
Bytes startBeyondName,
boolean reversed,
int batchSize,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Returns an iterator that can be used to iterate over super columns. |
Iterator<org.apache.cassandra.thrift.Column> |
iterateColumnsFromRow(String columnFamily,
String rowKey,
String startBeyondName,
boolean reversed,
int batchSize,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Returns an iterator that can be used to iterate over super columns. |
Iterator<org.apache.cassandra.thrift.SuperColumn> |
iterateSuperColumnsFromRow(String columnFamily,
Bytes rowKey,
Bytes startBeyondName,
boolean reversed,
int batchSize,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Returns an iterator that can be used to iterate over super columns. |
Iterator<org.apache.cassandra.thrift.SuperColumn> |
iterateSuperColumnsFromRow(String columnFamily,
String rowKey,
String startBeyondName,
boolean reversed,
int batchSize,
org.apache.cassandra.thrift.ConsistencyLevel cLevel)
Returns an iterator that can be used to iterate over super columns. |
static org.apache.cassandra.thrift.ColumnParent |
newColumnParent(String columnFamily)
|
static org.apache.cassandra.thrift.SlicePredicate |
newColumnsPredicate(Bytes... colNames)
Create a new SlicePredicate instance. |
static org.apache.cassandra.thrift.SlicePredicate |
newColumnsPredicate(Bytes startName,
Bytes finishName,
boolean reversed,
int maxColCount)
Create a new SlicePredicate instance. |
static org.apache.cassandra.thrift.SlicePredicate |
newColumnsPredicate(String... colNames)
Create a new SlicePredicate instance. |
static org.apache.cassandra.thrift.SlicePredicate |
newColumnsPredicate(String startName,
String finishName,
boolean reversed,
int maxColCount)
Create a new SlicePredicate instance. |
static org.apache.cassandra.thrift.SlicePredicate |
newColumnsPredicateAll(boolean reversed,
int maxColCount)
Create a new SlicePredicate instance that selects "all" columns |
static org.apache.cassandra.thrift.IndexClause |
newIndexClause(Bytes startName,
int count,
org.apache.cassandra.thrift.IndexExpression... expressions)
Create a new IndexClause instance. |
static org.apache.cassandra.thrift.IndexClause |
newIndexClause(String startName,
int count,
org.apache.cassandra.thrift.IndexExpression... expressions)
Create a new IndexClause instance. |
static org.apache.cassandra.thrift.IndexExpression |
newIndexExpression(Bytes colName,
org.apache.cassandra.thrift.IndexOperator op,
Bytes value)
Create a new IndexExpression instance. |
static org.apache.cassandra.thrift.IndexExpression |
newIndexExpression(String colName,
org.apache.cassandra.thrift.IndexOperator op,
Bytes value)
Create a new IndexExpression instance. |
static org.apache.cassandra.thrift.KeyRange |
newKeyRange(Bytes startKey,
Bytes finishKey,
int maxKeyCount)
Create a new KeyRange instance. |
static org.apache.cassandra.thrift.KeyRange |
newKeyRange(String startKey,
String finishKey,
int maxKeyCount)
Create a new KeyRange instance. |
static org.apache.cassandra.thrift.KeyRange |
newKeyRingRange(String startFollowingKey,
String finishKey,
int maxKeyCount)
Create a new KeyRange instance. |
static boolean |
superColumnExists(List<org.apache.cassandra.thrift.SuperColumn> superColumns,
Bytes superColName)
Determines if a super column with a particular name exist in the list of super columns. |
static boolean |
superColumnExists(List<org.apache.cassandra.thrift.SuperColumn> superColumns,
String superColName)
Determines if a super column with a particular name exist in the list of super columns. |
Methods inherited from class org.scale7.cassandra.pelops.Operand |
---|
tryOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selector(IThriftPool thrift)
Method Detail |
---|
public int getColumnCount(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getColumnCount(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowpredicate
- A predicate selecting the columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getColumnCount(String columnFamily, String rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getColumnCount(String columnFamily, String rowKey, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowpredicate
- A predicate selecting the columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, String rowKey, Bytes superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columncLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, String rowKey, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columnpredicate
- A predicate selecting the sub columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, Bytes rowKey, Bytes superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columncLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, Bytes rowKey, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columnpredicate
- A predicate selecting the sub columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, String rowKey, String superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columncLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, String rowKey, String superColName, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columnpredicate
- A predicate selecting the sub columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, Bytes rowKey, String superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columncLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSubColumnCount(String columnFamily, Bytes rowKey, String superColName, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super columnpredicate
- A predicate selecting the sub columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSuperColumnCount(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSuperColumnCount(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowpredicate
- A predicate selecting the super columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSuperColumnCount(String columnFamily, String rowKey, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic int getSuperColumnCount(String columnFamily, String rowKey, org.apache.cassandra.thrift.SlicePredicate predicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowpredicate
- A predicate selecting the super columns to be countedcLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getColumnFromRow(String columnFamily, String rowKey, String colName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcolName
- The name of the column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getColumnFromRow(String columnFamily, String rowKey, Bytes colName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcolName
- The name of the column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getColumnFromRow(String columnFamily, Bytes rowKey, Bytes colName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcolName
- The name of the column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.SuperColumn getSuperColumnFromRow(String columnFamily, String rowKey, String superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
SuperColumn
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.SuperColumn getSuperColumnFromRow(String columnFamily, String rowKey, Bytes superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
SuperColumn
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.SuperColumn getSuperColumnFromRow(String columnFamily, Bytes rowKey, Bytes superColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
SuperColumn
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getSubColumnFromRow(String columnFamily, String rowKey, Bytes superColName, String subColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column containing the sub columnsubColName
- The name of the sub column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getSubColumnFromRow(String columnFamily, String rowKey, String superColName, String subColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column containing the sub columnsubColName
- The name of the sub column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getSubColumnFromRow(String columnFamily, String rowKey, String superColName, Bytes subColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column containing the sub columnsubColName
- The name of the sub column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getSubColumnFromRow(String columnFamily, String rowKey, Bytes superColName, Bytes subColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column containing the sub columnsubColName
- The name of the sub column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic org.apache.cassandra.thrift.Column getSubColumnFromRow(String columnFamily, Bytes rowKey, Bytes superColName, Bytes subColName, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws NotFoundException, PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowsuperColName
- The name of the super column containing the sub columnsubColName
- The name of the sub column to retrievecLevel
- The Cassandra consistency level with which to perform the operation
Column
NotFoundException
- If no value is present
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getColumnsFromRow(String columnFamily, String rowKey, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getColumnsFromRow(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the rowcolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getSubColumnsFromRow(String columnFamily, Bytes rowKey, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the super columnsuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getSubColumnsFromRow(String columnFamily, String rowKey, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the super columnsuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getSubColumnsFromRow(String columnFamily, String rowKey, String superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the super columnsuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getSuperColumnsFromRow(String columnFamily, String rowKey, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the super columnscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getSuperColumnsFromRow(String columnFamily, Bytes rowKey, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the super columnscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getPageOfColumnsFromRow(String columnFamily, String rowKey, Bytes startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the columnsstartBeyondName
- The sequence of columns must begin with the smallest column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending column name ordercount
- The maximum number of columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getPageOfColumnsFromRow(String columnFamily, String rowKey, String startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the columnsstartBeyondName
- The sequence of columns must begin with the smallest column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending column name ordercount
- The maximum number of columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getPageOfColumnsFromRow(String columnFamily, Bytes rowKey, String startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the columnsstartBeyondName
- The sequence of columns must begin with the smallest column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending column name ordercount
- The maximum number of columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.Column> getPageOfColumnsFromRow(String columnFamily, Bytes rowKey, Bytes startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowrowKey
- The key of the row containing the columnsstartBeyondName
- The sequence of columns must begin with the smallest column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending column name ordercount
- The maximum number of columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Iterator<org.apache.cassandra.thrift.Column> iterateColumnsFromRow(String columnFamily, Bytes rowKey, Bytes startBeyondName, boolean reversed, int batchSize, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
to fetch batches of super columns (based on the batchSize parameter).
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name orderbatchSize
- The maximum number of super columns that can be retrieved per invocation to getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
and dictates the number of super columns to be held in memory at any one timecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Iterator<org.apache.cassandra.thrift.Column> iterateColumnsFromRow(String columnFamily, String rowKey, String startBeyondName, boolean reversed, int batchSize, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
to fetch batches of super columns (based on the batchSize parameter).
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name orderbatchSize
- The maximum number of super columns that can be retrieved per invocation to getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
and dictates the number of super columns to be held in memory at any one timecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getPageOfSuperColumnsFromRow(String columnFamily, String rowKey, Bytes startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name ordercount
- The maximum number of super columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getPageOfSuperColumnsFromRow(String columnFamily, String rowKey, String startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name ordercount
- The maximum number of super columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getPageOfSuperColumnsFromRow(String columnFamily, Bytes rowKey, String startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name ordercount
- The maximum number of super columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic List<org.apache.cassandra.thrift.SuperColumn> getPageOfSuperColumnsFromRow(String columnFamily, Bytes rowKey, Bytes startBeyondName, boolean reversed, int count, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name ordercount
- The maximum number of super columns that can be retrieved by the scancLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Iterator<org.apache.cassandra.thrift.SuperColumn> iterateSuperColumnsFromRow(String columnFamily, Bytes rowKey, Bytes startBeyondName, boolean reversed, int batchSize, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
to fetch batches of super columns (based on the batchSize parameter).
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name orderbatchSize
- The maximum number of super columns that can be retrieved per invocation to getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
and dictates the number of super columns to be held in memory at any one timecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Iterator<org.apache.cassandra.thrift.SuperColumn> iterateSuperColumnsFromRow(String columnFamily, String rowKey, String startBeyondName, boolean reversed, int batchSize, org.apache.cassandra.thrift.ConsistencyLevel cLevel)
getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
to fetch batches of super columns (based on the batchSize parameter).
columnFamily
- The name of the column family containing the super columnsrowKey
- The key of the rowstartBeyondName
- The sequence of super columns must begin with the smallest super column name greater than this value. Pass null
to start at the beginning of the sequence.reversed
- Whether the scan should proceed in descending super column name orderbatchSize
- The maximum number of super columns that can be retrieved per invocation to getPageOfSuperColumnsFromRow(String, String, Bytes, boolean, int, org.apache.cassandra.thrift.ConsistencyLevel)
and dictates the number of super columns to be held in memory at any one timecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getColumnsFromRows(String columnFamily, List<Bytes> rowKeys, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the columnscolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getColumnsFromRowsUtf8Keys(String columnFamily, List<String> rowKeys, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the columnscolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRows(String columnFamily, List<Bytes> rowKeys, String superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRowsUtf8Keys(String columnFamily, List<String> rowKeys, String superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRows(String columnFamily, List<Bytes> rowKeys, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRowsUtf8Keys(String columnFamily, List<String> rowKeys, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.SuperColumn>> getSuperColumnsFromRows(String columnFamily, List<Bytes> rowKeys, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.SuperColumn>> getSuperColumnsFromRowsUtf8Keys(String columnFamily, List<String> rowKeys, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
columnFamily
- The column family containing the rowsrowKeys
- The keys of the rows containing the super columnscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getColumnsFromRows(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowscolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getColumnsFromRowsUtf8Keys(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowscolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRows(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRowsUtf8Keys(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, Bytes superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRows(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, String superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.Column>> getSubColumnsFromRowsUtf8Keys(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, String superColName, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowssuperColName
- The name of the super columncolPredicate
- The sub-column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.SuperColumn>> getSuperColumnsFromRows(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<String,List<org.apache.cassandra.thrift.SuperColumn>> getSuperColumnsFromRowsUtf8Keys(String columnFamily, org.apache.cassandra.thrift.KeyRange keyRange, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
columnFamily
- The column family containing the rowskeyRange
- A key range selecting the rowscolPredicate
- The super column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getIndexedColumns(String colParent, org.apache.cassandra.thrift.IndexClause indexClause, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
colParent
- The column parent containing the rowsindexClause
- A index clausecolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic Map<Bytes,List<org.apache.cassandra.thrift.Column>> getIndexedColumns(org.apache.cassandra.thrift.ColumnParent colParent, org.apache.cassandra.thrift.IndexClause indexClause, org.apache.cassandra.thrift.SlicePredicate colPredicate, org.apache.cassandra.thrift.ConsistencyLevel cLevel) throws PelopsException
LinkedHashMap
and its key iterator proceeds in the order that the key data was returned by
Cassandra. If the cluster uses the RandomPartitioner, this order appears random.
colParent
- The column parentindexClause
- A index key range selecting the rowscolPredicate
- The column selector predicatecLevel
- The Cassandra consistency level with which to perform the operation
PelopsException
- if an error occurspublic static org.apache.cassandra.thrift.IndexExpression newIndexExpression(Bytes colName, org.apache.cassandra.thrift.IndexOperator op, Bytes value)
IndexExpression
instance.
colName
- The name of the columnop
- The index expression operator (for now only EQ works)value
- Lookup value
IndexExpression
public static org.apache.cassandra.thrift.IndexExpression newIndexExpression(String colName, org.apache.cassandra.thrift.IndexOperator op, Bytes value)
IndexExpression
instance.
colName
- The name of the columnop
- The index expression operator (for now only EQ works)value
- Lookup value
IndexExpression
public static org.apache.cassandra.thrift.IndexClause newIndexClause(String startName, int count, org.apache.cassandra.thrift.IndexExpression... expressions)
IndexClause
instance.
startName
- The inclusive column start name of the index range to select in the slicecount
- The maximum number of rows to returnexpressions
- Index value lookup expressions
IndexClause
public static org.apache.cassandra.thrift.IndexClause newIndexClause(Bytes startName, int count, org.apache.cassandra.thrift.IndexExpression... expressions)
IndexClause
instance.
startName
- The inclusive column start name of the index range to select in the slicecount
- The maximum number of rows to returnexpressions
- Index value lookup expressions
IndexClause
public static org.apache.cassandra.thrift.SlicePredicate newColumnsPredicateAll(boolean reversed, int maxColCount)
SlicePredicate
instance that selects "all" columns
reversed
- Whether the results should be returned in reverse ordermaxColCount
- The maximum number of columns to return
SlicePredicate
public static org.apache.cassandra.thrift.SlicePredicate newColumnsPredicate(Bytes startName, Bytes finishName, boolean reversed, int maxColCount)
SlicePredicate
instance.
startName
- The inclusive column start name of the range to select in the slicefinishName
- The inclusive column end name of the range to select in the slicereversed
- Whether the results should be returned in reverse ordermaxColCount
- The maximum number of columns to return
SlicePredicate
public static org.apache.cassandra.thrift.SlicePredicate newColumnsPredicate(String startName, String finishName, boolean reversed, int maxColCount)
SlicePredicate
instance.
startName
- The inclusive column start name of the range to select in the slicefinishName
- The inclusive column end name of the range to select in the slicereversed
- Whether the results should be returned in reverse ordermaxColCount
- The maximum number of columns to return
SlicePredicate
public static org.apache.cassandra.thrift.SlicePredicate newColumnsPredicate(String... colNames)
SlicePredicate
instance.
colNames
- The specific columns names to select in the slice
SlicePredicate
public static org.apache.cassandra.thrift.SlicePredicate newColumnsPredicate(Bytes... colNames)
SlicePredicate
instance.
colNames
- The specific columns names to select in the slice
SlicePredicate
public static org.apache.cassandra.thrift.KeyRange newKeyRange(String startKey, String finishKey, int maxKeyCount)
KeyRange
instance.
startKey
- The inclusive start key of the rangefinishKey
- The inclusive finish key of the rangemaxKeyCount
- The maximum number of keys to be scanned
KeyRange
instancepublic static org.apache.cassandra.thrift.KeyRange newKeyRange(Bytes startKey, Bytes finishKey, int maxKeyCount)
KeyRange
instance.
startKey
- The inclusive start key of the rangefinishKey
- The inclusive finish key of the rangemaxKeyCount
- The maximum number of keys to be scanned
KeyRange
instancepublic static org.apache.cassandra.thrift.KeyRange newKeyRingRange(String startFollowingKey, String finishKey, int maxKeyCount)
KeyRange
instance.
startFollowingKey
- The exclusive start key of the ring rangefinishKey
- The inclusive finish key of the range (can be less than startFollowing
)maxKeyCount
- The maximum number of keys to be scanned
KeyRange
instancepublic static boolean superColumnExists(List<org.apache.cassandra.thrift.SuperColumn> superColumns, String superColName)
superColumns
- The list of super columnssuperColName
- The name of the super column
public static boolean superColumnExists(List<org.apache.cassandra.thrift.SuperColumn> superColumns, Bytes superColName)
superColumns
- The list of super columnssuperColName
- The name of the super column
public static org.apache.cassandra.thrift.SuperColumn getSuperColumn(List<org.apache.cassandra.thrift.SuperColumn> superColumns, Bytes superColName) throws ArrayIndexOutOfBoundsException
superColumns
- The list of super columnssuperColName
- The name of the super column
ArrayIndexOutOfBoundsException
- Thrown if the list does not contain a super column with the specified namepublic static org.apache.cassandra.thrift.SuperColumn getSuperColumn(List<org.apache.cassandra.thrift.SuperColumn> superColumns, String superColName) throws ArrayIndexOutOfBoundsException
superColumns
- The list of super columnssuperColName
- The name of the super column
ArrayIndexOutOfBoundsException
- Thrown if the list does not contain a super column with the specified namepublic static String getColumnStringName(org.apache.cassandra.thrift.Column column)
column
- The column
byte[]
name as a UTF8 stringpublic static String getColumnStringValue(org.apache.cassandra.thrift.Column column)
column
- The column containing the value
byte[]
value as a UTF8 stringpublic static String getColumnValue(List<org.apache.cassandra.thrift.Column> columns, String colName, String defaultValue) throws UnsupportedEncodingException
columns
- The list of columnscolName
- The name of the column from which to retrieve the valuedefaultValue
- A default value to return if a column with the specified name is not present in the list
UnsupportedEncodingException
- Thrown if the column value was not a stringpublic static Bytes getColumnValue(List<org.apache.cassandra.thrift.Column> columns, String colName, Bytes defaultValue)
columns
- The list of columnscolName
- The name of the column from which to retrieve the valuedefaultValue
- A default value to return if a column with the specified name is not present in the list
public static Bytes getColumnValue(List<org.apache.cassandra.thrift.Column> columns, Bytes colName, Bytes defaultValue)
columns
- The list of columnscolName
- The name of the column from which to retrieve the valuedefaultValue
- A default value to return if a column with the specified name is not present in the list
public static String getColumnValue(List<org.apache.cassandra.thrift.Column> columns, Bytes colName, String defaultValue) throws UnsupportedEncodingException
columns
- The list of columnscolName
- The name of the column from which to retrieve the valuedefaultValue
- A default value to return if a column with the specified name is not present in the list
UnsupportedEncodingException
- Thrown if the column value was not a stringpublic static boolean columnExists(List<org.apache.cassandra.thrift.Column> columns, Bytes colName)
columns
- The list of columnscolName
- The name of the column
public static boolean columnExists(List<org.apache.cassandra.thrift.Column> columns, String colName)
columns
- The list of columnscolName
- The name of the column
public static Bytes getColumnValue(List<org.apache.cassandra.thrift.Column> columns, Bytes colName) throws ArrayIndexOutOfBoundsException
columns
- The list of columnscolName
- The name of the column from which to retrieve the value
ArrayIndexOutOfBoundsException
- Thrown if the specified column was not foundpublic static Bytes getColumnValue(List<org.apache.cassandra.thrift.Column> columns, String colName) throws ArrayIndexOutOfBoundsException
columns
- The list of columnscolName
- The name of the column from which to retrieve the value
ArrayIndexOutOfBoundsException
- Thrown if the specified column was not foundpublic static String getColumnStringValue(List<org.apache.cassandra.thrift.Column> columns, String colName) throws ArrayIndexOutOfBoundsException, UnsupportedEncodingException
columns
- The list of columnscolName
- The name of the column from which to retrieve the value
String
ArrayIndexOutOfBoundsException
- Thrown if the specified column was not found
UnsupportedEncodingException
- Thrown if the column value did not contain a valid UTF-8 stringpublic static String getColumnStringValue(List<org.apache.cassandra.thrift.Column> columns, Bytes colName) throws ArrayIndexOutOfBoundsException, UnsupportedEncodingException
columns
- The list of columnscolName
- The name of the column from which to retrieve the value
String
ArrayIndexOutOfBoundsException
- Thrown if the specified column was not found
UnsupportedEncodingException
- Thrown if the column value did not contain a valid UTF-8 stringpublic static long getColumnTimestamp(List<org.apache.cassandra.thrift.Column> columns, Bytes colName) throws ArrayIndexOutOfBoundsException
columns
- The list of columnscolName
- The name of the column from which to retrieve the timestamp
Mutator
object uses time stamps as microseconds)
UnsupportedEncodingException
- Thrown if the column value did not contain a valid UTF-8 string
ArrayIndexOutOfBoundsException
public static long getColumnTimestamp(List<org.apache.cassandra.thrift.Column> columns, String colName) throws ArrayIndexOutOfBoundsException
columns
- The list of columnscolName
- The name of the column from which to retrieve the timestamp
Mutator
object uses time stamps as microseconds)
UnsupportedEncodingException
- Thrown if the column value did not contain a valid UTF-8 string
ArrayIndexOutOfBoundsException
public static org.apache.cassandra.thrift.ColumnParent newColumnParent(String columnFamily)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |