|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Cassandra.Iface
Method Summary | |
---|---|
void |
batch_mutate(java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<Mutation>>> mutation_map,
ConsistencyLevel consistency_level)
Mutate many columns or super columns for many row keys. |
java.lang.String |
describe_cluster_name()
get the cluster name |
KsDef |
describe_keyspace(java.lang.String keyspace)
describe specified keyspace |
java.util.List<KsDef> |
describe_keyspaces()
list the defined keyspaces in this cluster |
java.lang.String |
describe_partitioner()
returns the partitioner used by this cluster |
java.util.List<TokenRange> |
describe_ring(java.lang.String keyspace)
get the token ring: a map of ranges to host addresses, represented as a set of TokenRange instead of a map from range to list of endpoints, because you can't use Thrift structs as map keys: https://issues.apache.org/jira/browse/THRIFT-162 for the same reason, we can't return a set here, even though order is neither important nor predictable. |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
describe_schema_versions()
for each schema version present in the cluster, returns a list of nodes at that version. |
java.lang.String |
describe_snitch()
returns the snitch used by this cluster |
java.util.List<java.lang.String> |
describe_splits(java.lang.String cfName,
java.lang.String start_token,
java.lang.String end_token,
int keys_per_split)
experimental API for hadoop/parallel query support. |
java.lang.String |
describe_version()
get the thrift api version |
int |
get_count(java.nio.ByteBuffer key,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
returns the number of columns matching predicate for a particular key ,
ColumnFamily and optionally SuperColumn . |
java.util.List<KeySlice> |
get_indexed_slices(ColumnParent column_parent,
IndexClause index_clause,
SlicePredicate column_predicate,
ConsistencyLevel consistency_level)
Returns the subset of columns specified in SlicePredicate for the rows matching the IndexClause |
java.util.List<KeySlice> |
get_range_slices(ColumnParent column_parent,
SlicePredicate predicate,
KeyRange range,
ConsistencyLevel consistency_level)
returns a subset of columns for a contiguous range of keys. |
java.util.List<ColumnOrSuperColumn> |
get_slice(java.nio.ByteBuffer key,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
Get the group of columns contained by column_parent (either a ColumnFamily name or a ColumnFamily/SuperColumn name pair) specified by the given SlicePredicate. |
ColumnOrSuperColumn |
get(java.nio.ByteBuffer key,
ColumnPath column_path,
ConsistencyLevel consistency_level)
Get the Column or SuperColumn at the given column_path. |
void |
insert(java.nio.ByteBuffer key,
ColumnParent column_parent,
Column column,
ConsistencyLevel consistency_level)
Insert a Column at the given column_parent.column_family and optional column_parent.super_column. |
void |
login(AuthenticationRequest auth_request)
|
java.util.Map<java.nio.ByteBuffer,java.lang.Integer> |
multiget_count(java.util.List<java.nio.ByteBuffer> keys,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
Perform a get_count in parallel on the given list |
java.util.Map<java.nio.ByteBuffer,java.util.List<ColumnOrSuperColumn>> |
multiget_slice(java.util.List<java.nio.ByteBuffer> keys,
ColumnParent column_parent,
SlicePredicate predicate,
ConsistencyLevel consistency_level)
Performs a get_slice for column_parent and predicate for the given keys in parallel. |
void |
remove(java.nio.ByteBuffer key,
ColumnPath column_path,
long timestamp,
ConsistencyLevel consistency_level)
Remove data from the row specified by key at the granularity specified by column_path, and the given timestamp. |
void |
set_keyspace(java.lang.String keyspace)
|
java.lang.String |
system_add_column_family(CfDef cf_def)
adds a column family. |
java.lang.String |
system_add_keyspace(KsDef ks_def)
adds a keyspace and any column families that are part of it. |
java.lang.String |
system_drop_column_family(java.lang.String column_family)
drops a column family. |
java.lang.String |
system_drop_keyspace(java.lang.String keyspace)
drops a keyspace and any column families that are part of it. |
java.lang.String |
system_update_column_family(CfDef cf_def)
updates properties of a column family. |
java.lang.String |
system_update_keyspace(KsDef ks_def)
updates properties of a keyspace. |
void |
truncate(java.lang.String cfname)
Truncate will mark and entire column family as deleted. |
Method Detail |
---|
void login(AuthenticationRequest auth_request) throws AuthenticationException, AuthorizationException, org.apache.thrift.TException
AuthenticationException
AuthorizationException
org.apache.thrift.TException
void set_keyspace(java.lang.String keyspace) throws InvalidRequestException, org.apache.thrift.TException
InvalidRequestException
org.apache.thrift.TException
ColumnOrSuperColumn get(java.nio.ByteBuffer key, ColumnPath column_path, ConsistencyLevel consistency_level) throws InvalidRequestException, NotFoundException, UnavailableException, TimedOutException, org.apache.thrift.TException
key
- column_path
- consistency_level
-
InvalidRequestException
NotFoundException
UnavailableException
TimedOutException
org.apache.thrift.TException
java.util.List<ColumnOrSuperColumn> get_slice(java.nio.ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
key
- column_parent
- predicate
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
int get_count(java.nio.ByteBuffer key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
predicate
for a particular key
,
ColumnFamily
and optionally SuperColumn
.
key
- column_parent
- predicate
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
java.util.Map<java.nio.ByteBuffer,java.util.List<ColumnOrSuperColumn>> multiget_slice(java.util.List<java.nio.ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
keys
- column_parent
- predicate
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
java.util.Map<java.nio.ByteBuffer,java.lang.Integer> multiget_count(java.util.List<java.nio.ByteBuffer> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
keys
- column_parent
- predicate
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
java.util.List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
column_parent
- predicate
- range
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
java.util.List<KeySlice> get_indexed_slices(ColumnParent column_parent, IndexClause index_clause, SlicePredicate column_predicate, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
column_parent
- index_clause
- column_predicate
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
void insert(java.nio.ByteBuffer key, ColumnParent column_parent, Column column, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
key
- column_parent
- column
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
void remove(java.nio.ByteBuffer key, ColumnPath column_path, long timestamp, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
key
- column_path
- timestamp
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
void batch_mutate(java.util.Map<java.nio.ByteBuffer,java.util.Map<java.lang.String,java.util.List<Mutation>>> mutation_map, ConsistencyLevel consistency_level) throws InvalidRequestException, UnavailableException, TimedOutException, org.apache.thrift.TException
mutation_map
- consistency_level
-
InvalidRequestException
UnavailableException
TimedOutException
org.apache.thrift.TException
void truncate(java.lang.String cfname) throws InvalidRequestException, UnavailableException, org.apache.thrift.TException
cfname
-
InvalidRequestException
UnavailableException
org.apache.thrift.TException
java.util.Map<java.lang.String,java.util.List<java.lang.String>> describe_schema_versions() throws InvalidRequestException, org.apache.thrift.TException
InvalidRequestException
org.apache.thrift.TException
java.util.List<KsDef> describe_keyspaces() throws InvalidRequestException, org.apache.thrift.TException
InvalidRequestException
org.apache.thrift.TException
java.lang.String describe_cluster_name() throws org.apache.thrift.TException
org.apache.thrift.TException
java.lang.String describe_version() throws org.apache.thrift.TException
org.apache.thrift.TException
java.util.List<TokenRange> describe_ring(java.lang.String keyspace) throws InvalidRequestException, org.apache.thrift.TException
keyspace
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String describe_partitioner() throws org.apache.thrift.TException
org.apache.thrift.TException
java.lang.String describe_snitch() throws org.apache.thrift.TException
org.apache.thrift.TException
KsDef describe_keyspace(java.lang.String keyspace) throws NotFoundException, InvalidRequestException, org.apache.thrift.TException
keyspace
-
NotFoundException
InvalidRequestException
org.apache.thrift.TException
java.util.List<java.lang.String> describe_splits(java.lang.String cfName, java.lang.String start_token, java.lang.String end_token, int keys_per_split) throws org.apache.thrift.TException
cfName
- start_token
- end_token
- keys_per_split
-
org.apache.thrift.TException
java.lang.String system_add_column_family(CfDef cf_def) throws InvalidRequestException, org.apache.thrift.TException
cf_def
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String system_drop_column_family(java.lang.String column_family) throws InvalidRequestException, org.apache.thrift.TException
column_family
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String system_add_keyspace(KsDef ks_def) throws InvalidRequestException, org.apache.thrift.TException
ks_def
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String system_drop_keyspace(java.lang.String keyspace) throws InvalidRequestException, org.apache.thrift.TException
keyspace
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String system_update_keyspace(KsDef ks_def) throws InvalidRequestException, org.apache.thrift.TException
ks_def
-
InvalidRequestException
org.apache.thrift.TException
java.lang.String system_update_column_family(CfDef cf_def) throws InvalidRequestException, org.apache.thrift.TException
cf_def
-
InvalidRequestException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |