Package com.complexible.stardog.index
Class IndexOptions
java.lang.Object
com.complexible.stardog.index.IndexOptions
- All Implemented Interfaces:
MetaPropertyProvider
Set of options for configuring the low-level indexes.
- Since:
- 0.6
- Version:
- 5.0
- Author:
- Michael Grove, Evren Sirin, Fernando Hernandez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumDeprecated.Memory indexes have been removed.static enumSelects which transaction store backs a database.static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final ConfigProperty<Boolean> Option to turn on automatic statistics updates.static final ConfigProperty<String> Internal use only - The bnode prefix id used for only bulk loading at db creation time.static final ConfigProperty<Long> The amount of memory to be used by the bulk load dictionary.static final LongTHe amount of memory reserved for system operations when bulk load dictionary is being used,static final InfoProperty<com.complexible.stardog.index.IndexOrder> Internal use only.static final ConfigProperty<Integer> static final ConfigProperty<Integer> static final ConfigProperty<Boolean> static final ConfigProperty<Long> Option which specifies the maximum number of records will be written to index's sst file during bulk loading; After this threshold exceeds bulk load import current sst file and switches to the new one; Default value:1_000_000_000Lstatic final ConfigProperty<Long> Option specifies the file size at which dictionary values should switch to a new .sst file.static final InfoProperty<Long> Internal use onlystatic final InfoProperty<Boolean> Internal use onlystatic final ConfigProperty<Boolean> static final ConfigProperty<Boolean> Specify that non-string typed literals are canonicalized in the database.static final ConfigProperty<Integer> The max capacity for the query pattern cardinality cache that is shared across queries to the same database.static final ConfigProperty<IndexOptions.CompressionType> Option which specifies what kind of compression wil lbe used for data written to disk.static final InfoProperty<com.complexible.stardog.index.IndexStrategy> Intended for internal system use only, not for users.static final ConfigProperty<Integer> Maximum number of triples to keep in memory for merging interleaving additions and removals while querying uncommitted state.static final ConfigProperty<com.complexible.stardog.index.AggregateIndexes> Deprecated.static final ConfigProperty<Boolean> static final ConfigProperty<Integer> Intended for internal use only, not for users.static final ConfigProperty<Boolean> Option which specifies if the dictionary vacuuming process will be multithreaded; Default value:falsestatic final ConfigProperty<UUID> Internal use only - The UUID for the last committed transaction.static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> static final ConfigProperty<Boolean> Deprecated.static final InfoProperty<PrintStream> Internal use only.static final InfoProperty<Long> Current size of the database.static final ConfigProperty<Boolean> Whether chain statistics is enabled or not.static final ConfigProperty<Integer> The max number of characteristic sets computed as a part of the statistical summary of the database.static final ConfigProperty<Boolean> Whether property object join statistics is enabled or not.static final ConfigProperty<com.complexible.stardog.index.StatisticsStrategy> Determines how index statistics is computed when a database is bulk loaded.static final ConfigProperty<Integer> static final ConfigProperty<Double> static final ConfigProperty<Integer> static final ConfigProperty<Boolean> Enabling scaling cardinality estimations based on the active graph and DB statistics Default value:truestatic final ConfigProperty<Double> Ratio of updated triples to the number of triples in the database that triggers the automatic statistics recomputation inside the transaction.static final InfoProperty<Long> Internal use only.static final ConfigProperty<Long> Minimum number of triples that should be in the database for statistics to be updated automatically.static final ConfigProperty<Double> Ratio of updated triples to the number of triples in the database that triggers the automatic statistics recomputation in a background thread.static final ConfigProperty<Long> Option which specifies at what point Stardog skips memtables writes and use bulk loading code for transactional updates.static final ConfigProperty<Long> Starting at this limit, the NativeBulkUpdater will be used.static final ConfigProperty<IndexOptions.TransactionStoreMode> Controls whether a new database allocates its ownDBTRANSACTIONcolumn family (IndexOptions.TransactionStoreMode.Database, default) or shares the global system transaction store (IndexOptions.TransactionStoreMode.System).static final ConfigProperty<Boolean> Option which specifies if databases uses a WAL (Write-ahead Log).static final ConfigProperty<IndexOptions.WriteConflictStrategy> -
Method Summary
Modifier and TypeMethodDescriptionstatic Metadatadisk()Deprecated.static booleanDeprecated, for removal: This API element is subject to removal in a future version.All indexes are now disk-based.static booleanDeprecated, for removal: This API element is subject to removal in a future version.Memory indexes have been removed.static booleanDeprecated, for removal: This API element is subject to removal in a future version.All databases are now disk-based and always persist.static Optional<PrintStream> progressOutput(Metadata theOptions)
-
Field Details
-
SIZE
Current size of the database. Provided only for information purposes and cannot be modified by users. -
BULK_LOAD_DICTIONARY_RESERVED_MEM
THe amount of memory reserved for system operations when bulk load dictionary is being used, -
BULK_LOAD_DICTIONARY_MEM
The amount of memory to be used by the bulk load dictionary. If it is set to 0 or a negative value explicitly by the user, the bulk load dictionary will not be used. If the option is not set by the user and bulk_load memory is being used this option will be automatically set based on memory configuration. -
PERSIST
Deprecated.Option no longer used in 12.1.0 - all databases are disk based for a long time. Cannot remove this option completely from the codebase, since _downgrades_ from 12.1.0 -> 12.0.0 break if the option is missing. Unfortunately the default value in 12.0.0 is set to false, so we must keep the option set to true -
CANONICAL_LITERALS
Specify that non-string typed literals are canonicalized in the database. Improves query and loading performance, but does change literal values to a canonical form. For example, "1"^^xsd:byte is canonicalized to "1"^^xsd:integer. Set this option to false if you require literals to be exactly as specified, rather than canonicalized. The default value is 'true'. note that, this value can only be set at database creation time and cannot be changed at a future time. -
INLINE_BOOLEANS
-
INLINING_VERSION
Intended for internal use only, not for users. Specifies the version of the procedure used to canonicalize literals. -
INDEXES_AGGREGATE
@Deprecated(since="11.0") public static final ConfigProperty<com.complexible.stardog.index.AggregateIndexes> INDEXES_AGGREGATEDeprecated.Option to specify whether to maintain aggregate indexes. -
INDEX_STRATEGY
Intended for internal system use only, not for users. Index strategy used by the database. -
PROGRESS_OUTPUT
Internal use only. Useinstead.invalid reference
DatabaseOptions#PROGRESS_MONITOR_ENABLED -
BULK_LOADER_NAMED_GRAPHS
Internal use only -
BULK_LOADER_ESTIMATED_SIZE
Internal use only -
BULK_LOAD_MAX_PARSERS
-
BULK_LOAD_MAX_HANDLERS
-
BULK_LOAD_RESIZE_HANDLERS
-
BULK_LOADER_OVERWRITE_DATA
-
STATS_UPDATE_COUNT
Internal use only. Number of updated keys, added + removed in total. -
STATS_UPDATE_DB_MIN_SIZE
Minimum number of triples that should be in the database for statistics to be updated automatically. -
STATISTICS_ON_DB_CREATION
public static final ConfigProperty<com.complexible.stardog.index.StatisticsStrategy> STATISTICS_ON_DB_CREATIONDetermines how index statistics is computed when a database is bulk loaded. By default it's computed synchronously. -
AUTO_STATS_UPDATE
Option to turn on automatic statistics updates. When this option is set totrue, Stardog will decide when to update statistics as the database is modified through additions and removals and update statistics as needed. If this option is set tofalse, Stardog will never update the statistics regardless of how much the database is updated. -
COMPRESSION
Option which specifies what kind of compression wil lbe used for data written to disk. Default value:LZ4 -
WRITE_CONFLICT_STRATEGY
-
TXN_STORE_MODE
Controls whether a new database allocates its ownDBTRANSACTIONcolumn family (IndexOptions.TransactionStoreMode.Database, default) or shares the global system transaction store (IndexOptions.TransactionStoreMode.System).Fixed at database creation: the on-disk column family set is determined by this value at create time and cannot be changed afterwards.
Default value:IndexOptions.TransactionStoreMode.System -
WAL_ENABLED
Option which specifies if databases uses a WAL (Write-ahead Log). WAL ensures committed transactions will not be lost if the server crashes without a proper shutdown. Default value:true -
BULK_LOAD_SST_CHUNK_SIZE
Option which specifies the maximum number of records will be written to index's sst file during bulk loading; After this threshold exceeds bulk load import current sst file and switches to the new one; Default value:1_000_000_000L -
BULK_LOAD_VALUE_SIZE_THRESHOLD
Option specifies the file size at which dictionary values should switch to a new .sst file. Default value:500_000_000L -
TX_BULK_LOAD_HARD_THRESHOLD
Starting at this limit, the NativeBulkUpdater will be used. If the number of quads in the transaction does not exceed this limit then we fall back to the pipelined writer instead. -
TX_BULK_LOAD_ADAPTIVE_THRESHOLD
Option which specifies at what point Stardog skips memtables writes and use bulk loading code for transactional updates. The mechanism will first buffer quads in memory until it reaches the threshold, at which point it will switch to bulk loading. Note: this was renamed from TX_BULK_LOAD_WRITE_LIMIT in previous versions, the property name is identical Default value:495_000LMatch Spark connector default client buffer size - which is usually estimated around 495k quads at the servers side. ... -
IS_DICTIONARY_VACUUMING_MULTITHREADED
Option which specifies if the dictionary vacuuming process will be multithreaded; Default value:false -
STATS_UPDATE_RATIO
Ratio of updated triples to the number of triples in the database that triggers the automatic statistics recomputation in a background thread. This option has no effect ifAUTO_STATS_UPDATEis off or the index size is less thanSTATS_UPDATE_DB_MIN_SIZE. If the ratio is set to0.1then adding 100K triples to a database with 1M triples will trigger the automatic stats recomputation. The added and removed triples are counted separately so adding 50K triples removing 50K triples count as updating 100K triples. Default value:0.1 -
STATS_UPDATE_BLOCKING_RATIO
Ratio of updated triples to the number of triples in the database that triggers the automatic statistics recomputation inside the transaction. This option is similar toSTATS_UPDATE_RATIObut it is performed synchronously within the transaction instead of a background thread. The client will not get the commit acknowledgement until the stats is recomputed. This option has no effect ifAUTO_STATS_UPDATEis off or the index size is less thanSTATS_UPDATE_DB_MIN_SIZE. Setting this option to a non-positive number (<= 0) will disable blocking updates. Default value:0 -
CARDINALITY_CACHE_CAPACITY
The max capacity for the query pattern cardinality cache that is shared across queries to the same database. Default value:1024 -
STATISTICS_CHARACTERISTIC_SETS_LIMIT
The max number of characteristic sets computed as a part of the statistical summary of the database. More diverse datasets may require a higher number for more accurate query planning. The downside is higher memory footprint and slower planning. This is a soft limit and the actual number of sets can slightly exceed it. Default value:10000 -
STATISTICS_RANGE_SAMPLE_SIZE
-
STATISTICS_CHAINS_ENABLED
Whether chain statistics is enabled or not. Default value:true -
STATISTICS_OBJECT_JOIN_ENABLED
Whether property object join statistics is enabled or not. Default value:true -
STATS_ENABLE_ACTIVE_GRAPH
Enabling scaling cardinality estimations based on the active graph and DB statistics Default value:true -
INDEX_WRITER_MERGE_LIMIT
Maximum number of triples to keep in memory for merging interleaving additions and removals while querying uncommitted state. -
STATISTICS_SKETCH_CAPACITY
-
STATISTICS_RARE_PREDICATE
-
LAST_COMMITTED_TX
Internal use only - The UUID for the last committed transaction. -
BULK_LOAD_INPUT_INDEX_ORDER
public static final InfoProperty<com.complexible.stardog.index.IndexOrder> BULK_LOAD_INPUT_INDEX_ORDERInternal use only. The index order of the input data during bulk loading from a backup. When set, the matching index order will skip external sorting since the data is already sorted. -
BNODE_PREFIX_ID
Internal use only - The bnode prefix id used for only bulk loading at db creation time. -
OPTIMIZE_VACUUM_DATA
-
OPTIMIZE_VACUUM_DICTIONARY
-
OPTIMIZE_STATISTICS
-
OPTIMIZE_COMPACT
-
OPTIMIZE_LITERAL_INDEX
-
OPTIMIZE_DISK_SPACE_FORCE
-
OPTIMIZE_THROTTLE_OVERRIDE
-
ASYNC_FLUSH
public static final boolean ASYNC_FLUSH
-
-
Method Details
-
isMemory
Deprecated, for removal: This API element is subject to removal in a future version.Memory indexes have been removed. This method always returns false. -
isDisk
Deprecated, for removal: This API element is subject to removal in a future version.All indexes are now disk-based. This method always returns true. -
disk
Deprecated. -
isPersist
Deprecated, for removal: This API element is subject to removal in a future version.All databases are now disk-based and always persist. This method always returns true.Return whether persistence is enabled.- Parameters:
theOptions- the options (ignored, all databases are now persisted)- Returns:
- always true, all databases are now disk-based and persist
-
progressOutput
-