Package uk.gov.gchq.gaffer.mapstore
Class MapStoreProperties
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.StoreProperties
-
- uk.gov.gchq.gaffer.mapstore.MapStoreProperties
-
- All Implemented Interfaces:
Cloneable
public class MapStoreProperties extends StoreProperties
AdditionalStoreProperties
for theMapStore
.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CREATE_INDEX
static String
CREATE_INDEX_DEFAULT
static String
INGEST_BUFFER_SIZE
Property name for the ingest buffer size.static int
INGEST_BUFFER_SIZE_DEFAULT
static String
MAP_FACTORY
static String
MAP_FACTORY_CONFIG
static String
MAP_FACTORY_CONFIG_DEFAULT
static Class<? extends MapFactory>
MAP_FACTORY_DEFAULT
static String
STATIC_MAP
static String
STATIC_MAP_DEFAULT
-
Fields inherited from class uk.gov.gchq.gaffer.store.StoreProperties
ADMIN_AUTH, EXECUTOR_SERVICE_THREAD_COUNT, EXECUTOR_SERVICE_THREAD_COUNT_DEFAULT, GAFFER_NAMED_OPERATION_NESTED, JOB_TRACKER_ENABLED, JSON_SERIALISER_CLASS, JSON_SERIALISER_MODULES, NAMED_OPERATION_ENABLED, NAMED_VIEW_ENABLED, OPERATION_DECLARATIONS, OPERATION_DECLARATIONS_JSON, REFLECTION_PACKAGES, RESCHEDULE_JOBS_ON_START, SCHEMA_CLASS, STORE_CLASS, STORE_PROPERTIES_CLASS, STRICT_JSON
-
-
Constructor Summary
Constructors Constructor Description MapStoreProperties()
MapStoreProperties(Path propFileLocation)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MapStoreProperties
clone()
boolean
getCreateIndex()
int
getIngestBufferSize()
String
getJsonSerialiserModules()
String
getMapFactory()
String
getMapFactoryConfig()
boolean
isStaticMap()
static MapStoreProperties
loadStoreProperties(InputStream storePropertiesStream)
static MapStoreProperties
loadStoreProperties(String pathStr)
static MapStoreProperties
loadStoreProperties(Path storePropertiesPath)
void
setCreateIndex(boolean createIndex)
void
setIngestBufferSize(int ingestBufferSize)
void
setMapFactory(Class<? extends MapFactory> mapFactory)
void
setMapFactory(String mapFactory)
void
setMapFactoryConfig(String path)
void
setStaticMap(boolean staticMap)
-
Methods inherited from class uk.gov.gchq.gaffer.store.StoreProperties
addOperationDeclarationPaths, containsKey, equals, get, get, getAdminAuth, getCacheServiceClass, getCacheServiceClass, getCacheServiceDefaultSuffix, getCacheServiceJobTrackerSuffix, getCacheServiceNamedOperationSuffix, getCacheServiceNamedViewSuffix, getDefaultCacheServiceClass, getJobExecutorThreadCount, getJobTrackerCacheServiceClass, getJobTrackerEnabled, getJsonSerialiserClass, getNamedOperationCacheServiceClass, getNamedOperationEnabled, getNamedViewCacheServiceClass, getNamedViewEnabled, getOperationDeclarationPaths, getOperationDeclarations, getProperties, getReflectionPackages, getRescheduleJobsOnStart, getSchemaClass, getSchemaClassName, getStoreClass, getStorePropertiesClass, getStorePropertiesClassName, getStrictJson, hashCode, isNestedNamedOperationAllow, isNestedNamedOperationAllow, loadStoreProperties, loadStoreProperties, loadStoreProperties, loadStoreProperties, loadStoreProperties, merge, set, setAdminAuth, setCacheServiceClass, setCacheServiceNameSuffix, setDefaultCacheServiceClass, setJobTrackerCacheServiceClass, setJobTrackerEnabled, setJsonSerialiserClass, setJsonSerialiserClass, setJsonSerialiserModules, setJsonSerialiserModules, setNamedOperationCacheServiceClass, setNamedOperationEnabled, setNamedViewCacheServiceClass, setNamedViewEnabled, setNestedNamedOperationAllow, setOperationDeclarationPaths, setProperties, setReflectionPackages, setRescheduleJobsOnStart, setSchemaClass, setSchemaClass, setStoreClass, setStoreClass, setStorePropertiesClass, setStorePropertiesClassName, setStrictJson, toString, updateStorePropertiesClass, updateStorePropertiesClass
-
-
-
-
Field Detail
-
CREATE_INDEX
public static final String CREATE_INDEX
- See Also:
- Constant Field Values
-
CREATE_INDEX_DEFAULT
public static final String CREATE_INDEX_DEFAULT
- See Also:
- Constant Field Values
-
MAP_FACTORY
public static final String MAP_FACTORY
- See Also:
- Constant Field Values
-
MAP_FACTORY_DEFAULT
public static final Class<? extends MapFactory> MAP_FACTORY_DEFAULT
-
MAP_FACTORY_CONFIG
public static final String MAP_FACTORY_CONFIG
- See Also:
- Constant Field Values
-
MAP_FACTORY_CONFIG_DEFAULT
public static final String MAP_FACTORY_CONFIG_DEFAULT
-
STATIC_MAP
public static final String STATIC_MAP
- See Also:
- Constant Field Values
-
STATIC_MAP_DEFAULT
public static final String STATIC_MAP_DEFAULT
- See Also:
- Constant Field Values
-
INGEST_BUFFER_SIZE
public static final String INGEST_BUFFER_SIZE
Property name for the ingest buffer size. If the value is set to less than 1 then no buffer is used and elements are added directly to the underlying maps.- See Also:
- Constant Field Values
-
INGEST_BUFFER_SIZE_DEFAULT
public static final int INGEST_BUFFER_SIZE_DEFAULT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MapStoreProperties
public MapStoreProperties()
-
MapStoreProperties
public MapStoreProperties(Path propFileLocation)
-
-
Method Detail
-
loadStoreProperties
public static MapStoreProperties loadStoreProperties(String pathStr)
-
loadStoreProperties
public static MapStoreProperties loadStoreProperties(InputStream storePropertiesStream)
-
loadStoreProperties
public static MapStoreProperties loadStoreProperties(Path storePropertiesPath)
-
clone
public MapStoreProperties clone()
- Overrides:
clone
in classStoreProperties
-
setCreateIndex
public void setCreateIndex(boolean createIndex)
-
getCreateIndex
public boolean getCreateIndex()
-
getMapFactory
public String getMapFactory()
-
setMapFactory
public void setMapFactory(String mapFactory)
-
setMapFactory
public void setMapFactory(Class<? extends MapFactory> mapFactory)
-
getMapFactoryConfig
public String getMapFactoryConfig()
-
setMapFactoryConfig
public void setMapFactoryConfig(String path)
-
getIngestBufferSize
public int getIngestBufferSize()
-
setIngestBufferSize
public void setIngestBufferSize(int ingestBufferSize)
-
isStaticMap
public boolean isStaticMap()
-
setStaticMap
public void setStaticMap(boolean staticMap)
-
getJsonSerialiserModules
public String getJsonSerialiserModules()
- Overrides:
getJsonSerialiserModules
in classStoreProperties
-
-