public final class IndexOptions extends Object implements MetaPropertyProvider
Set of options for configuring the low-level indexes.
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexOptions.CompressionType |
static class |
IndexOptions.IndexType
Types of indexes.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ASYNC_FLUSH |
static ConfigProperty<Boolean> |
AUTO_STATS_UPDATE
Option to turn on automatic statistics updates.
|
static ConfigProperty<Long> |
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 |
static InfoProperty<Integer> |
BULK_LOADER_CONCURRENCY |
static InfoProperty<Long> |
BULK_LOADER_ESTIMATED_SIZE
Internal use only
|
static InfoProperty<Boolean> |
BULK_LOADER_NAMED_GRAPHS
Internal use only
|
static ConfigProperty<Boolean> |
BULK_LOADER_OVERWRITE_DATA |
static ConfigProperty<Boolean> |
CANONICAL_LITERALS
Specify that non-string typed literals are canonicalized in the database.
|
static ConfigProperty<IndexOptions.CompressionType> |
COMPRESSION
Option which specifies what kind of compression wil lbe used for data written to disk.
|
static InfoProperty<Long> |
DEPRECATED_STATS_UPDATE_DB_MIN_SIZE
Deprecated.
use
STATS_UPDATE_DB_MIN_SIZE instead |
static ConfigProperty<Integer> |
DIFF_INDEX_MAX_LIMIT
The limit for the size of the differential index.
|
static ConfigProperty<Integer> |
DIFF_INDEX_MIN_LIMIT
The limit for the size of the base index when differential indexes will be used.
|
static InfoProperty<Integer> |
DIFF_INDEX_SIZE
Current size of the differential index.
|
static InfoProperty<Boolean> |
FORCE_ASYNC |
static ConfigProperty<Boolean> |
INDEX_NAMED_GRAPHS
Option to specify whether or not extra indexes will be maintained for named graphs.
|
static InfoProperty<com.complexible.stardog.index.IndexStrategy> |
INDEX_STRATEGY
Intended for internal system use only, not for users.
|
static ConfigProperty<IndexOptions.IndexType> |
INDEX_TYPE
Type of the index.
|
static ConfigProperty<com.complexible.stardog.index.AggregateIndexes> |
INDEXES_AGGREGATE
Option to specify whether or not to maintain aggregate indexes.
|
static ConfigProperty<Boolean> |
INLINE_BOOLEANS |
static ConfigProperty<Integer> |
INLINING_VERSION
Intended for internal use only, not for users.
|
static ConfigProperty<UUID> |
LAST_COMMITTED_TX
Internal use only - The UUID for the last committed transaction.
|
static InfoProperty<Integer> |
LOCK_STRIPE_SIZE |
static ConfigProperty<Boolean> |
PERSIST
Option to determine if the contents of the memory database will be persisted on disk.
|
static InfoProperty<PrintStream> |
PROGRESS_OUTPUT
Internal use only.
|
static InfoProperty<Long> |
SIZE
Current size of the database.
|
static ConfigProperty<Double> |
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.
|
static InfoProperty<Long> |
STATS_UPDATE_COUNT
Internal use only.
|
static ConfigProperty<Long> |
STATS_UPDATE_DB_MIN_SIZE
Minimum number of triples that should be in the database for statistics to be updated automatically.
|
static ConfigProperty<Double> |
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.
|
static ConfigProperty<Boolean> |
SYNC
Deprecated.
To be removed in 5.1, this option no longer has any effect on mem indexes
|
static ConfigProperty<Boolean> |
WAL_ENABLED
Option which specifies if databases uses a WAL (Write-ahead Log).
|
| Modifier and Type | Method and Description |
|---|---|
static Metadata |
disk() |
static boolean |
isDisk(Metadata theOptions) |
static boolean |
isMemory(Metadata theOptions) |
static boolean |
isPersist(Metadata theOptions)
Return whether or not the
PERSIST option is set |
static Metadata |
memory()
Options for creating a memory database.
|
static Optional<PrintStream> |
progressOutput(Metadata theOptions) |
public static final InfoProperty<Long> SIZE
public static final ConfigProperty<Boolean> PERSIST
@Deprecated public static final ConfigProperty<Boolean> SYNC
true indicates the db should be
persisted within the commit. Otherwise, the persist will happen asynchronously after the commit is complete. This
flag has no effect against disk indexes.public static final ConfigProperty<IndexOptions.IndexType> INDEX_TYPE
public static final ConfigProperty<Boolean> CANONICAL_LITERALS
public static final ConfigProperty<Boolean> INLINE_BOOLEANS
public static final ConfigProperty<Integer> INLINING_VERSION
public static final ConfigProperty<Boolean> INDEX_NAMED_GRAPHS
public static final ConfigProperty<com.complexible.stardog.index.AggregateIndexes> INDEXES_AGGREGATE
public static final InfoProperty<com.complexible.stardog.index.IndexStrategy> INDEX_STRATEGY
public static final InfoProperty<Integer> DIFF_INDEX_SIZE
DIFF_INDEX_MAX_LIMIT. There is no benefit of differential indexes if
the main index itself is too small. For this reason, the differential index is not used until the main index
size reaches DIFF_INDEX_MAX_LIMIT.public static final ConfigProperty<Integer> DIFF_INDEX_MIN_LIMIT
DIFF_INDEX_SIZEpublic static final ConfigProperty<Integer> DIFF_INDEX_MAX_LIMIT
DIFF_INDEX_SIZEpublic static final InfoProperty<PrintStream> PROGRESS_OUTPUT
DatabaseOptions.PROGRESS_MONITOR_ENABLED instead.public static final InfoProperty<Boolean> BULK_LOADER_NAMED_GRAPHS
public static final InfoProperty<Long> BULK_LOADER_ESTIMATED_SIZE
public static final ConfigProperty<Boolean> BULK_LOADER_OVERWRITE_DATA
public static final InfoProperty<Integer> BULK_LOADER_CONCURRENCY
public static final InfoProperty<Integer> LOCK_STRIPE_SIZE
public static final InfoProperty<Boolean> FORCE_ASYNC
public static final InfoProperty<Long> STATS_UPDATE_COUNT
public static final ConfigProperty<Long> STATS_UPDATE_DB_MIN_SIZE
@Deprecated public static final InfoProperty<Long> DEPRECATED_STATS_UPDATE_DB_MIN_SIZE
STATS_UPDATE_DB_MIN_SIZE insteadSTATS_UPDATE_DB_MIN_SIZE. The declaration exists only to avoid unnecessarry
warnings for databases created before version 5.2.3.public static final ConfigProperty<Boolean> AUTO_STATS_UPDATE
true, Stardog will decide
when to update statistics as the database is modified through additions and removals and update statistics is
needed. If this option is set to false, Stardog will never update the statistics regardless of how
much the database is updated.public static final ConfigProperty<IndexOptions.CompressionType> COMPRESSION
LZ4public static final ConfigProperty<Boolean> WAL_ENABLED
truepublic static final ConfigProperty<Long> BULK_LOAD_SST_CHUNK_SIZE
1_000_000_000Lpublic static final ConfigProperty<Double> STATS_UPDATE_RATIO
AUTO_STATS_UPDATE is off or the index size is less than STATS_UPDATE_DB_MIN_SIZE.
If the ratio is set to to 0.1 then 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.1public static final ConfigProperty<Double> STATS_UPDATE_BLOCKING_RATIO
STATS_UPDATE_RATIO but 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 if AUTO_STATS_UPDATE is off or the
index size is less than STATS_UPDATE_DB_MIN_SIZE. Setting this option to a non-positive number (<= 0) will
disable blocking updates.
Default value: 0public static final ConfigProperty<UUID> LAST_COMMITTED_TX
public static final boolean ASYNC_FLUSH
public static boolean isMemory(Metadata theOptions)
public static boolean isDisk(Metadata theOptions)
public static Metadata memory()
public static Metadata disk()
public static boolean isPersist(Metadata theOptions)
PERSIST option is settheOptions - the optionspublic static Optional<PrintStream> progressOutput(Metadata theOptions)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.