public static interface TemporaryStoreFactory.Options
TemporaryStoreFactory
.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MAX_EXTENT
The default maximum extent ("1073741824").
|
static String |
DEFAULT_OFFSET_BITS |
static String |
JAVA_TMP_DIR_PROPERTY
The Java system property whose value is the default directory for the
TemporaryStore s created by this factory (
java.io.tmpdir ). |
static String |
MAX_EXTENT
The maximum extent of the existing
TemporaryStore before
Journal.getTempStore() will return a new
TemporaryStore instance (default
). |
static String |
OFFSET_BITS
The #of bits in a 64-bit long integer identifier that are used to encode
the byte offset of a record in the store as an unsigned integer.
|
static String |
TMP_DIR
The directory within which the
TemporaryStore s will be
created. |
static final String TMP_DIR
TemporaryStore
s will be
created. The default is whichever directory is specified by
the Java system property java.io.tmpdir
.static final String JAVA_TMP_DIR_PROPERTY
TemporaryStore
s created by this factory (
java.io.tmpdir
).static final String OFFSET_BITS
WormAddressManager.SCALE_UP_OFFSET_BITS
.static final String DEFAULT_OFFSET_BITS
static final String MAX_EXTENT
TemporaryStore
before
Journal.getTempStore()
will return a new
TemporaryStore
instance (default
).
TemporaryStore
s are reused in order to keep down the #of file
handles and the latency to create a new TemporaryStore
for
operations which make heavy use of temporary data. Old
TemporaryStore
instances will be reclaimed (and deleted on
the disk) once they are no longer strongly referenced.
This option DOES NOT place an absolute limit on the maximum extent of
a TemporaryStore
instance. A TemporaryStore
will
continue to grow in side as long as a process continues to write on
the TemporaryStore
.
static final String DEFAULT_MAX_EXTENT
TemporaryStore
will be created by TemporaryStoreFactory.getTempStore()
when the extent of the current TemporaryStore
reaches this
value. However, the temporary store will continue to grow as long as
there are execution contexts which retain a reference to that
instance.
Note: Each file system has its own limits on the maximum size of a file. FAT16 limits the maximum file size to only 2G. FAT32 supports 4G files. NTFS and most un*x file systems support 16G+ files. A safe point for allocating a new temporary store for new requests is therefore LT the smallest maximum file size supported by any of the common file systems.
A temporary store that reaches the maximum size allowed for the file system will fail when a request is made to extend that file. How that effects processing depends of course on the purpose to which the temporary store was being applied. E.g., to buffer a transaction, to perform truth maintenance, etc.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.