public class AccumuloProperties extends StoreProperties
AccumuloProperties
contains specific configuration information for the
AccumuloStore
, such as database connection strings. It wraps
Properties
and lazy loads the all properties from
a file when first used.Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_SIDE_BLOOM_FILTER_SIZE |
static String |
ENABLE_VALIDATOR_ITERATOR |
static String |
ENABLE_VALIDATOR_ITERATOR_DEFAULT |
static String |
FALSE_POSITIVE_RATE |
static String |
HDFS_SKIP_PERMISSIONS |
static String |
INSTANCE_NAME |
static String |
KEY_PACKAGE_CLASS |
static String |
MAX_BLOOM_FILTER_TO_PASS_TO_AN_ITERATOR |
static String |
MAX_BUFFER_SIZE_FOR_BATCH_WRITER |
static String |
MAX_ENTRIES_FOR_BATCH_SCANNER |
static String |
MAX_TIME_OUT_FOR_BATCH_WRITER |
static String |
NAMESPACE |
static String |
NUM_THREADS_FOR_BATCH_WRITER |
static String |
PASSWORD |
static String |
TABLE
Deprecated.
use a graphId.
|
static String |
TABLE_REPLICATION_FACTOR |
static String |
THREADS_FOR_BATCH_SCANNER |
static String |
USER |
static String |
ZOOKEEPERS |
ADMIN_AUTH, EXECUTOR_SERVICE_THREAD_COUNT, EXECUTOR_SERVICE_THREAD_COUNT_DEFAULT, ID, JOB_TRACKER_ENABLED, JSON_SERIALISER_CLASS, JSON_SERIALISER_MODULES, OPERATION_DECLARATIONS, REFLECTION_PACKAGES, SCHEMA_CLASS, STORE_CLASS, STORE_PROPERTIES_CLASS, STRICT_JSON
Constructor and Description |
---|
AccumuloProperties() |
AccumuloProperties(Path propFileLocation) |
Modifier and Type | Method and Description |
---|---|
AccumuloProperties |
clone() |
int |
getClientSideBloomFilterSize()
Gets the size that should be used for the creation of bloom filters on the
client side.
|
boolean |
getEnableValidatorIterator()
Gets the flag determining whether the validator iterator should be enabled.
|
double |
getFalsePositiveRate()
Gets the allowable rate of false positives for bloom filters (Generally
the higher the value the faster the filter).
|
String |
getInstance()
Gets the Accumulo instance name.
|
String |
getJsonSerialiserModules() |
String |
getKeyPackageClass()
Gets the key package that should be used in conjunction with this table.
|
int |
getMaxBloomFilterToPassToAnIterator()
Gets the size that should be used for the creation of bloom filters on the
server side.
|
Long |
getMaxBufferSizeForBatchWriterInBytes()
Gets the memory buffer size that should be used for the Accumulo batch
writers.
|
int |
getMaxEntriesForBatchScanner()
Gets the max number of items that should be read into the scanner at any
one time.
|
Long |
getMaxTimeOutForBatchWriterInMilliseconds()
Gets the time out/latency that should be used for the Accumulo batch
writers.
|
String |
getNamespace()
Gets the namespace for the Accumulo table.
|
int |
getNumThreadsForBatchWriter()
Gets the number of threads that should be used for the Accumulo batch
writers.
|
String |
getPassword()
Gets the password for the Accumulo user.
|
String |
getTable()
Deprecated.
|
String |
getTableFileReplicationFactor()
Gets the replication factor to be applied to tables created by Gaffer, if
not set then the table will use your general Accumulo settings default
value.
|
int |
getThreadsForBatchScanner()
Gets the number of threads to use in the batch scanner.
|
String |
getUser()
Gets the configured Accumulo user.
|
String |
getZookeepers()
Gets the list of Zookeeper servers.
|
static AccumuloProperties |
loadStoreProperties(InputStream storePropertiesStream) |
static AccumuloProperties |
loadStoreProperties(Path storePropertiesPath) |
static AccumuloProperties |
loadStoreProperties(String pathStr) |
void |
setClientSideBloomFilterSize(String clientSideBloomFilterSize)
Sets the size that should be used for the creation of bloom filters on the
client side.
|
void |
setEnableValidatorIterator(boolean enableValidatorIterator)
Sets the flag determining whether the validator iterator should be enabled.
|
void |
setFalsePositiveRate(String falsePositiveRate)
Sets the allowable rate of false positives for bloom filters (Generally
the higher the value the faster the filter).
|
void |
setInstance(String instance)
Sets the Accumulo instance name.
|
void |
setKeyPackageClass(String keyPackageClass)
Sets the key package that should be used in conjunction with this table.
|
void |
setMaxBloomFilterToPassToAnIterator(String maxBloomFilterToPassToAnIterator)
Sets the size that should be used for the creation of bloom filters on the
server side.
|
void |
setMaxBufferSizeForBatchWriterInBytes(String maxBufferSizeForBatchWriterInBytes)
Sets the memory buffer size that should be used for the Accumulo batch
writers.
|
void |
setMaxEntriesForBatchScanner(String maxEntriesForBatchScanner)
Sets the max number of items that should be read into the scanner at any
one time.
|
void |
setMaxTimeOutForBatchWriterInMilliseconds(String maxTimeOutForBatchWriterInMilliseconds)
Sets the time out/latency that should be used for the Accumulo batch
writers.
|
void |
setNamespace(String namespace)
Sets the namespace to use for the Accumulo table.
|
void |
setNumThreadsForBatchWriter(String numThreadsForBatchWriter)
Sets the number of threads that should be used for the Accumulo batch
writers.
|
void |
setPassword(String password)
Sets the password to use for the Accumulo user.
|
void |
setTable(String tableName)
Deprecated.
use a graphId.
|
void |
setTableFileReplicationFactor(String replicationFactor)
Sets the replication factor to be applied to tables created by Gaffer, if
not set then the table will use your general Accumulo settings default
value.
|
void |
setThreadsForBatchScanner(String threadsForBatchScanner)
Sets the number of threads to use in the batch scanner.
|
void |
setUser(String user)
Sets the configured Accumulo user.
|
void |
setZookeepers(String zookeepers)
Sets the list of Zookeeper servers.
|
addOperationDeclarationPaths, containsKey, equals, get, get, getAdminAuth, getId, getJobExecutorThreadCount, getJobTrackerEnabled, getJsonSerialiserClass, getOperationDeclarationPaths, getOperationDeclarations, getProperties, getReflectionPackages, getSchemaClass, getSchemaClassName, getStoreClass, getStorePropertiesClass, getStorePropertiesClassName, getStrictJson, hashCode, loadStoreProperties, loadStoreProperties, loadStoreProperties, loadStoreProperties, loadStoreProperties, merge, set, setAdminAuth, setId, setJobTrackerEnabled, setJsonSerialiserClass, setJsonSerialiserClass, setJsonSerialiserModules, setJsonSerialiserModules, setOperationDeclarationPaths, setProperties, setReflectionPackages, setSchemaClass, setSchemaClass, setStoreClass, setStoreClass, setStorePropertiesClass, setStorePropertiesClassName, setStrictJson, toString, updateStorePropertiesClass, updateStorePropertiesClass
public static final String KEY_PACKAGE_CLASS
public static final String INSTANCE_NAME
public static final String ZOOKEEPERS
@Deprecated public static final String TABLE
public static final String USER
public static final String PASSWORD
public static final String NAMESPACE
public static final String THREADS_FOR_BATCH_SCANNER
public static final String MAX_ENTRIES_FOR_BATCH_SCANNER
public static final String CLIENT_SIDE_BLOOM_FILTER_SIZE
public static final String FALSE_POSITIVE_RATE
public static final String MAX_BLOOM_FILTER_TO_PASS_TO_AN_ITERATOR
public static final String MAX_BUFFER_SIZE_FOR_BATCH_WRITER
public static final String MAX_TIME_OUT_FOR_BATCH_WRITER
public static final String NUM_THREADS_FOR_BATCH_WRITER
public static final String TABLE_REPLICATION_FACTOR
public static final String ENABLE_VALIDATOR_ITERATOR
public static final String HDFS_SKIP_PERMISSIONS
public static final String ENABLE_VALIDATOR_ITERATOR_DEFAULT
public AccumuloProperties()
public AccumuloProperties(Path propFileLocation)
public static AccumuloProperties loadStoreProperties(String pathStr)
public static AccumuloProperties loadStoreProperties(InputStream storePropertiesStream)
public static AccumuloProperties loadStoreProperties(Path storePropertiesPath)
public AccumuloProperties clone()
clone
in class StoreProperties
public void setNumThreadsForBatchWriter(String numThreadsForBatchWriter)
numThreadsForBatchWriter
- The number of concurrent threads to use in the batch writer.public void setMaxTimeOutForBatchWriterInMilliseconds(String maxTimeOutForBatchWriterInMilliseconds)
maxTimeOutForBatchWriterInMilliseconds
- The timeout to use on the batch writer.public void setMaxBufferSizeForBatchWriterInBytes(String maxBufferSizeForBatchWriterInBytes)
maxBufferSizeForBatchWriterInBytes
- The buffer size in bytes to use in the batch writer.public int getNumThreadsForBatchWriter()
public Long getMaxTimeOutForBatchWriterInMilliseconds()
public Long getMaxBufferSizeForBatchWriterInBytes()
public String getZookeepers()
public void setZookeepers(String zookeepers)
zookeepers
- the list of Zookeeper servers.public String getInstance()
public void setInstance(String instance)
instance
- the Accumulo instance name.@Deprecated public String getTable()
AccumuloStore.getTableName()
.@Deprecated public void setTable(String tableName)
tableName
- the table name.public String getUser()
public void setUser(String user)
user
- the configured Accumulo user.public String getPassword()
public void setPassword(String password)
password
- the password to use for the Accumulo user.public String getNamespace()
public void setNamespace(String namespace)
namespace
- the namespace to use for the Accumulo table.public int getThreadsForBatchScanner()
public void setThreadsForBatchScanner(String threadsForBatchScanner)
threadsForBatchScanner
- the number of threads to use in the batch scanner.public int getMaxEntriesForBatchScanner()
public void setMaxEntriesForBatchScanner(String maxEntriesForBatchScanner)
maxEntriesForBatchScanner
- the max number of items that should be read into the scanner at any one time.public int getClientSideBloomFilterSize()
public void setClientSideBloomFilterSize(String clientSideBloomFilterSize)
clientSideBloomFilterSize
- the size that should be used for the creation of bloom filters on the client side.public double getFalsePositiveRate()
public void setFalsePositiveRate(String falsePositiveRate)
falsePositiveRate
- the allowable rate of false positives for bloom
filters (Generally the higher the value the faster the filter).public int getMaxBloomFilterToPassToAnIterator()
public void setMaxBloomFilterToPassToAnIterator(String maxBloomFilterToPassToAnIterator)
maxBloomFilterToPassToAnIterator
- the size that should be used
for the creation of bloom filters on the server side.public String getKeyPackageClass()
AccumuloKeyPackage
to be used
for this accumulo table.public void setKeyPackageClass(String keyPackageClass)
keyPackageClass
- the key package that should be used in conjunction with this table.public String getTableFileReplicationFactor()
public void setTableFileReplicationFactor(String replicationFactor)
replicationFactor
- the replication factor to be applied to tables
created by gaffer, if not set then the table
will use your general accumulo settings default value.public boolean getEnableValidatorIterator()
public void setEnableValidatorIterator(boolean enableValidatorIterator)
enableValidatorIterator
- true if the validator iterator should be enabled.public String getJsonSerialiserModules()
getJsonSerialiserModules
in class StoreProperties
Copyright © 2022. All rights reserved.