public class TemporaryStoreFactory extends Object
IIndexStore.getTempStore()
. This class is very light
weight.Modifier and Type | Class and Description |
---|---|
static interface |
TemporaryStoreFactory.Options
Configuration options for the
TemporaryStoreFactory . |
Constructor and Description |
---|
TemporaryStoreFactory()
Constructor uses the Java system properties to configure the factory.
|
TemporaryStoreFactory(File tmpDir,
int offsetBits,
long maxExtent)
Constructor uses the caller's values to configure the factory.
|
TemporaryStoreFactory(Properties properties)
Constructor uses the caller's properties object to configure the factory.
|
Modifier and Type | Method and Description |
---|---|
void |
closeAll()
Close all open temporary stores allocated by this factory.
|
TemporaryStore |
getTempStore()
Return a
TemporaryStore . |
public TemporaryStoreFactory()
TemporaryStoreFactory.Options
may be used to override the defaults if specified
in the environment or on the JVM command line.public TemporaryStoreFactory(Properties properties)
properties
- Properties used to configure the factory.public TemporaryStoreFactory(File tmpDir, int offsetBits, long maxExtent)
tmpDir
- The directory within which the TemporaryStore
files
will be created.offsetBits
- This value governs how many records can exist within the
TemporaryStore
and the maximum size of those records.
A good default value is
WormAddressManager.SCALE_UP_OFFSET_BITS
.maxExtent
- The maximum extent of the current TemporaryStore
before getTempStore()
will return a new
TemporaryStore
.IllegalArgumentException
- if maxExtent is negative (zero is allowed and will
cause each request to return a distinct
TemporaryStore
).public TemporaryStore getTempStore()
TemporaryStore
. If there is no existing
TemporaryStore
then a new instance is returned. If there is an
existing TemporaryStore
and its extent is greater then the
configured maximum extent then a new TemporaryStore
will be
created and returned. Otherwise the existing instance is returned.public void closeAll()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.