public class CQLStoreManager extends DistributedStoreManager implements KeyColumnValueStoreManager
CQLKeyColumnValueStores and handles Cassandra-backed allocation of vertex IDs for JanusGraph (when so
configured).DistributedStoreManager.Deployment, DistributedStoreManager.MaskedTimestamp| Modifier and Type | Field and Description |
|---|---|
static String |
CONSISTENCY_LOCAL_QUORUM |
static String |
CONSISTENCY_QUORUM |
protected static CQLSessionBuilder |
DEFAULT_CQL_SESSION_BUILDER |
protected static CQLMutateManyFunctionBuilder |
DEFAULT_MUTATE_MANY_FUNCTION_BUILDER |
protected static CQLProgrammaticConfigurationLoaderBuilder |
DEFAULT_PROGRAMMATIC_CONFIGURATION_LOADER_BUILDER |
protected static CQLStoreFeaturesBuilder |
DEFAULT_STORE_FEATURES_BUILDER |
connectionTimeoutMS, hostnames, pageSize, password, port, times, usernameassignTimestamp, batchLoading, storageConfig, transactional| Constructor and Description |
|---|
CQLStoreManager(Configuration configuration)
Constructor for the
CQLStoreManager given a JanusGraph Configuration. |
CQLStoreManager(Configuration configuration,
CQLMutateManyFunctionBuilder mutateManyFunctionBuilder,
CQLStoreFeaturesBuilder storeFeaturesBuilder,
CQLSessionBuilder sessionBuilder,
CQLProgrammaticConfigurationLoaderBuilder baseConfigurationLoaderBuilder)
Constructor for the
CQLStoreManager given a JanusGraph Configuration. |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
beginTransaction(BaseTransactionConfig config) |
void |
clearStorage() |
void |
close() |
static String |
determineKeyspaceName(Configuration config) |
boolean |
exists() |
DistributedStoreManager.Deployment |
getDeployment() |
ExecutorService |
getExecutorService() |
StoreFeatures |
getFeatures() |
Object |
getHadoopManager() |
String |
getKeyspaceName() |
List<KeyRange> |
getLocalKeyPartition() |
String |
getName() |
QueryBackPressure |
getQueriesBackPressure() |
com.datastax.oss.driver.api.core.CqlSession |
getSession() |
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
KeyColumnValueStore |
openDatabase(String name,
StoreMetaData.Container metaData) |
getPageSize, getSingleHostname, getTimestampProvider, hasAuthentication, sleepAfterWrite, toStringgetMetaDataSchema, getStorageConfig, isAssignTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitopenDatabasepublic static final String CONSISTENCY_LOCAL_QUORUM
public static final String CONSISTENCY_QUORUM
protected static final CQLSessionBuilder DEFAULT_CQL_SESSION_BUILDER
protected static final CQLProgrammaticConfigurationLoaderBuilder DEFAULT_PROGRAMMATIC_CONFIGURATION_LOADER_BUILDER
protected static final CQLMutateManyFunctionBuilder DEFAULT_MUTATE_MANY_FUNCTION_BUILDER
protected static final CQLStoreFeaturesBuilder DEFAULT_STORE_FEATURES_BUILDER
public CQLStoreManager(Configuration configuration) throws BackendException
CQLStoreManager given a JanusGraph Configuration.configuration - Graph configurationBackendException - throws PermanentBackendException in case CQL connection cannot be initialized or
CQLStoreManager cannot be initializedpublic CQLStoreManager(Configuration configuration, CQLMutateManyFunctionBuilder mutateManyFunctionBuilder, CQLStoreFeaturesBuilder storeFeaturesBuilder, CQLSessionBuilder sessionBuilder, CQLProgrammaticConfigurationLoaderBuilder baseConfigurationLoaderBuilder) throws BackendException
CQLStoreManager given a JanusGraph Configuration.configuration - Graph configurationmutateManyFunctionBuilder - Builder for mutate many function with or without executor servicestoreFeaturesBuilder - Builder for store features function with DistributedStoreManager.DeploymentsessionBuilder - Builder for CqlSessionbaseConfigurationLoaderBuilder - Builder for CqlSession main configuration. It's not guaranteed to be used if it's disabled or if other configuration types are provided with higher priority.BackendException - throws PermanentBackendException in case CQL connection cannot be initialized or
CQLStoreManager cannot be initializedpublic ExecutorService getExecutorService()
public com.datastax.oss.driver.api.core.CqlSession getSession()
public String getKeyspaceName()
public void close()
throws BackendException
close in interface StoreManagerBackendExceptionpublic String getName()
getName in interface StoreManagerpublic DistributedStoreManager.Deployment getDeployment()
getDeployment in class DistributedStoreManagerpublic StoreFeatures getFeatures()
getFeatures in interface StoreManagerpublic KeyColumnValueStore openDatabase(String name, StoreMetaData.Container metaData) throws BackendException
openDatabase in interface KeyColumnValueStoreManagerBackendExceptionpublic StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException
beginTransaction in interface StoreManagerBackendExceptionpublic void clearStorage()
throws BackendException
clearStorage in interface StoreManagerBackendExceptionpublic boolean exists()
throws BackendException
exists in interface StoreManagerBackendExceptionpublic List<KeyRange> getLocalKeyPartition() throws BackendException
getLocalKeyPartition in interface StoreManagerBackendExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
mutateMany in interface KeyColumnValueStoreManagerBackendExceptionpublic static String determineKeyspaceName(Configuration config)
public Object getHadoopManager()
getHadoopManager in interface StoreManagerpublic QueryBackPressure getQueriesBackPressure()
Copyright © 2012–2024. All rights reserved.