public class CassandraThriftStoreManager extends AbstractCassandraStoreManager
CassandraThriftKeyColumnValueStores and
handles Cassandra-backed allocation of vertex IDs for Titan (when so
configured).| Modifier and Type | Class and Description |
|---|---|
static class |
CassandraThriftStoreManager.PoolExhaustedAction |
AbstractCassandraStoreManager.PartitionerDistributedStoreManager.Deployment, DistributedStoreManager.MaskedTimestamp| Modifier and Type | Field and Description |
|---|---|
static ConfigOption<Long> |
CPOOL_EVICTOR_PERIOD |
static ConfigOption<Boolean> |
CPOOL_IDLE_TESTS |
static ConfigOption<Integer> |
CPOOL_IDLE_TESTS_PER_EVICTION_RUN |
static ConfigOption<Integer> |
CPOOL_MAX_ACTIVE |
static ConfigOption<Integer> |
CPOOL_MAX_IDLE |
static ConfigOption<Integer> |
CPOOL_MAX_TOTAL |
static ConfigOption<Long> |
CPOOL_MAX_WAIT |
static ConfigOption<Long> |
CPOOL_MIN_EVICTABLE_IDLE_TIME |
static ConfigOption<Integer> |
CPOOL_MIN_IDLE |
static ConfigNamespace |
CPOOL_NS |
static ConfigOption<CassandraThriftStoreManager.PoolExhaustedAction> |
CPOOL_WHEN_EXHAUSTED |
static ConfigOption<Integer> |
THRIFT_FRAME_SIZE
THRIFT_FRAME_SIZE_IN_MB should be appropriately set when server-side Thrift counterpart was changed,
because otherwise client wouldn't be able to accept read/write frames from server as incorrectly sized.
|
static ConfigNamespace |
THRIFT_NS |
ATOMIC_BATCH_MUTATE, atomicBatch, CASSANDRA_KEYSPACE, CASSANDRA_NS, CASSANDRA_READ_CONSISTENCY, CASSANDRA_WRITE_CONSISTENCY, CF_COMPRESSION, CF_COMPRESSION_BLOCK_SIZE, CF_COMPRESSION_TYPE, compressionChunkSizeKB, compressionClass, compressionEnabled, keySpaceName, PORT_DEFAULT, REPLICATION_FACTOR, REPLICATION_OPTIONS, REPLICATION_STRATEGY, SSL_ENABLED, SSL_NS, SSL_TRUSTSTORE_LOCATION, SSL_TRUSTSTORE_NS, SSL_TRUSTSTORE_PASSWORD, strategyOptions, SYSTEM_KSconnectionTimeoutMS, hostnames, pageSize, password, port, times, usernamebatchLoading, isReadOnly, storageConfig, transactional| Constructor and Description |
|---|
CassandraThriftStoreManager(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearStorage()
Connect to Cassandra via Thrift on the specified host and port and attempt to truncate the named keyspace.
|
void |
close() |
org.apache.cassandra.dht.IPartitioner<? extends org.apache.cassandra.dht.Token<?>> |
getCassandraPartitioner() |
Map<String,String> |
getCompressionOptions(String cf)
Returns a map of compression options for the column family
cf. |
DistributedStoreManager.Deployment |
getDeployment() |
List<KeyRange> |
getLocalKeyPartition() |
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
CassandraThriftKeyColumnValueStore |
openDatabase(String name) |
String |
toString() |
beginTransaction, getFeatures, getName, getPartitionergetPageSize, getSingleHostname, getTimestampProvider, hasAuthentication, sleepAfterWritegetMetaDataSchema, getStorageConfigpublic static final ConfigNamespace THRIFT_NS
public static final ConfigOption<Integer> THRIFT_FRAME_SIZE
public static final ConfigNamespace CPOOL_NS
public static final ConfigOption<CassandraThriftStoreManager.PoolExhaustedAction> CPOOL_WHEN_EXHAUSTED
public static final ConfigOption<Integer> CPOOL_MAX_TOTAL
public static final ConfigOption<Integer> CPOOL_MAX_ACTIVE
public static final ConfigOption<Integer> CPOOL_MAX_IDLE
public static final ConfigOption<Integer> CPOOL_MIN_IDLE
public static final ConfigOption<Long> CPOOL_MAX_WAIT
public static final ConfigOption<Long> CPOOL_EVICTOR_PERIOD
public static final ConfigOption<Long> CPOOL_MIN_EVICTABLE_IDLE_TIME
public static final ConfigOption<Boolean> CPOOL_IDLE_TESTS
public static final ConfigOption<Integer> CPOOL_IDLE_TESTS_PER_EVICTION_RUN
public CassandraThriftStoreManager(Configuration config) throws BackendException
BackendExceptionpublic DistributedStoreManager.Deployment getDeployment()
getDeployment in class DistributedStoreManagerpublic org.apache.cassandra.dht.IPartitioner<? extends org.apache.cassandra.dht.Token<?>> getCassandraPartitioner()
throws BackendException
getCassandraPartitioner in class AbstractCassandraStoreManagerBackendExceptionpublic String toString()
toString in class AbstractCassandraStoreManagerpublic void close()
throws BackendException
BackendExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
BackendExceptionpublic CassandraThriftKeyColumnValueStore openDatabase(String name) throws BackendException
BackendExceptionpublic List<KeyRange> getLocalKeyPartition() throws BackendException
BackendExceptionpublic void clearStorage()
throws BackendException
BackendException - if any checked Thrift or UnknownHostException is thrown in the body of this methodpublic Map<String,String> getCompressionOptions(String cf) throws BackendException
AbstractCassandraStoreManagercf.
The contents of the returned map must be identical to the contents of the
map returned by
CfDef.getCompression_options(), even
for implementations of this method that don't use Thrift.getCompressionOptions in class AbstractCassandraStoreManagercf - the name of the column family for which to return compression
optionsBackendException - if reading from Cassandra failsCopyright © 2012–2016. All rights reserved.