public class ExecutingKeyspace extends Object implements Keyspace
| Modifier and Type | Field and Description |
|---|---|
protected HConnectionManager |
connectionManager |
protected ConsistencyLevelPolicy |
consistencyLevelPolicy |
protected String |
cqlVersion |
protected Map<String,String> |
credentials |
protected FailoverPolicy |
failoverPolicy |
protected String |
keyspace |
KEYSPACE_SYSTEM| Constructor and Description |
|---|
ExecutingKeyspace(String keyspace,
HConnectionManager connectionManager,
ConsistencyLevelPolicy consistencyLevelPolicy,
FailoverPolicy failoverPolicy) |
ExecutingKeyspace(String keyspace,
HConnectionManager connectionManager,
ConsistencyLevelPolicy consistencyLevelPolicy,
FailoverPolicy failoverPolicy,
Map<String,String> credentials) |
| Modifier and Type | Method and Description |
|---|---|
long |
createClock() |
<T> ExecutionResult<T> |
doExecute(KeyspaceOperationCallback<T> koc) |
<T> ExecutionResult<T> |
doExecuteOperation(Operation<T> operation) |
ExceptionsTranslator |
getExceptionsTranslator() |
String |
getKeyspaceName() |
void |
setConsistencyLevelPolicy(ConsistencyLevelPolicy cp) |
String |
toString() |
protected ConsistencyLevelPolicy consistencyLevelPolicy
protected FailoverPolicy failoverPolicy
protected String cqlVersion
protected final HConnectionManager connectionManager
protected final String keyspace
public ExecutingKeyspace(String keyspace, HConnectionManager connectionManager, ConsistencyLevelPolicy consistencyLevelPolicy, FailoverPolicy failoverPolicy)
public ExecutingKeyspace(String keyspace, HConnectionManager connectionManager, ConsistencyLevelPolicy consistencyLevelPolicy, FailoverPolicy failoverPolicy, Map<String,String> credentials)
public void setConsistencyLevelPolicy(ConsistencyLevelPolicy cp)
setConsistencyLevelPolicy in interface Keyspacepublic String getKeyspaceName()
getKeyspaceName in interface Keyspacepublic long createClock()
createClock in interface Keyspacepublic <T> ExecutionResult<T> doExecute(KeyspaceOperationCallback<T> koc) throws HectorException
HectorExceptionpublic <T> ExecutionResult<T> doExecuteOperation(Operation<T> operation) throws HectorException
HectorExceptionpublic ExceptionsTranslator getExceptionsTranslator()
Copyright © 2014. All Rights Reserved.