java.lang.Object
org.apache.jena.tdb1.setup.StoreParams
- All Implemented Interfaces:
BlockParams,IndexParams,StoreParamsDynamic
System parameters for a TDB database instance.
Some parameters can be changed from run to run and some parameters can only be changed at the point the database is created.
Getting parameters settings wrong can destroy a database. Alternating the block size is not encouraged and should only be done if necessary. It can silently destroy a database if set to a different value than that used to create the database. The default value of 8 kilobytes is good for almost use.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StoreParamsBuilderbuilder()Build StoreParams, starting from system defaults.static StoreParamsBuilderbuilder(StoreParams params) Build StoreParams, starting from given default values.booleanBlock read cache size (mmap'ed files do not have a block cache)Block size - this is only configurable when the on-disk are created.Block write cache size (mmap'ed files do not have a block cache)static StoreParamsThe system default settings.File ModeNode cache for Node->NodeId.Node cache for NodeId->Node.Node cache for recording known missesString[]String[]static StoreParamsAStoreParamsthat provides a smaller in-JVM foot print.String[]inthashCode()booleanbooleanbooleanbooleanbooleanbooleanstatic booleansameValues(StoreParams params1, StoreParams params2) Equality but ignore "isSet"toString()
-
Method Details
-
builder
Build StoreParams, starting from system defaults.- Returns:
- StoreParamsBuilder
-
builder
Build StoreParams, starting from given default values.- Returns:
- StoreParamsBuilder
-
getDftStoreParams
The system default settings. This is the normal set to use. It is the set of values used when no StoreParams is provided, which is the normal usage. -
getSmallStoreParams
AStoreParamsthat provides a smaller in-JVM foot print. This is compatible with any database but it is wise to use this consistently, that is, use when created and when opened later. It reduces cache sizes and runs the database in "direct" file mode so as not to use memory mapped files in addition to the JVM space. -
getFileMode
Description copied from interface:IndexParamsFile Mode- Specified by:
getFileModein interfaceBlockParams- Specified by:
getFileModein interfaceIndexParams- Specified by:
getFileModein interfaceStoreParamsDynamic
-
isSetFileMode
public boolean isSetFileMode()- Specified by:
isSetFileModein interfaceStoreParamsDynamic
-
getBlockSize
Description copied from interface:IndexParamsBlock size - this is only configurable when the on-disk are created. After that, the same value as at creation must be used each time.- Specified by:
getBlockSizein interfaceBlockParams- Specified by:
getBlockSizein interfaceIndexParams
-
getBlockReadCacheSize
Description copied from interface:IndexParamsBlock read cache size (mmap'ed files do not have a block cache)- Specified by:
getBlockReadCacheSizein interfaceBlockParams- Specified by:
getBlockReadCacheSizein interfaceIndexParams- Specified by:
getBlockReadCacheSizein interfaceStoreParamsDynamic
-
isSetBlockReadCacheSize
public boolean isSetBlockReadCacheSize()- Specified by:
isSetBlockReadCacheSizein interfaceStoreParamsDynamic
-
getBlockWriteCacheSize
Description copied from interface:IndexParamsBlock write cache size (mmap'ed files do not have a block cache)- Specified by:
getBlockWriteCacheSizein interfaceBlockParams- Specified by:
getBlockWriteCacheSizein interfaceIndexParams- Specified by:
getBlockWriteCacheSizein interfaceStoreParamsDynamic
-
isSetBlockWriteCacheSize
public boolean isSetBlockWriteCacheSize()- Specified by:
isSetBlockWriteCacheSizein interfaceStoreParamsDynamic
-
getNode2NodeIdCacheSize
Description copied from interface:StoreParamsDynamicNode cache for Node->NodeId.- Specified by:
getNode2NodeIdCacheSizein interfaceStoreParamsDynamic
-
isSetNodeId2NodeCacheSize
public boolean isSetNodeId2NodeCacheSize()- Specified by:
isSetNodeId2NodeCacheSizein interfaceStoreParamsDynamic
-
isSetNode2NodeIdCacheSize
public boolean isSetNode2NodeIdCacheSize()- Specified by:
isSetNode2NodeIdCacheSizein interfaceStoreParamsDynamic
-
getNodeId2NodeCacheSize
Description copied from interface:StoreParamsDynamicNode cache for NodeId->Node. Important for SPARQL results.- Specified by:
getNodeId2NodeCacheSizein interfaceStoreParamsDynamic
-
getNodeMissCacheSize
Description copied from interface:StoreParamsDynamicNode cache for recording known misses- Specified by:
getNodeMissCacheSizein interfaceStoreParamsDynamic
-
isSetNodeMissCacheSize
public boolean isSetNodeMissCacheSize()- Specified by:
isSetNodeMissCacheSizein interfaceStoreParamsDynamic
-
getIndexNode2Id
-
getIndexId2Node
-
getPrimaryIndexTriples
-
getTripleIndexes
-
getPrimaryIndexQuads
-
getQuadIndexes
-
getPrimaryIndexPrefix
-
getPrefixIndexes
-
getIndexPrefix
-
getPrefixNode2Id
-
getPrefixId2Node
-
toString
-
hashCode
public int hashCode() -
sameValues
Equality but ignore "isSet" -
equals
-