public class TDBFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Dataset |
assembleDataset(String assemblerFile)
Read the file and assembler a dataset
|
static Dataset |
createDataset()
Create or connect to a TDB dataset backed by an in-memory block manager.
|
static Dataset |
createDataset(org.apache.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset
|
static Dataset |
createDataset(String dir)
Create or connect to a TDB-backed dataset
|
static DatasetGraph |
createDatasetGraph()
Create a TDB-backed dataset (graph-level) in memory (for testing)
|
static DatasetGraph |
createDatasetGraph(org.apache.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset (graph-level)
|
static DatasetGraph |
createDatasetGraph(String directory)
Create or connect to a TDB-backed dataset (graph-level)
|
static boolean |
isBackedByTDB(Dataset dataset)
Return the location of a dataset if it is backed by TDB, else null
|
static boolean |
isBackedByTDB(DatasetGraph datasetGraph)
Return the location of a dataset if it is backed by TDB, else null
|
static org.apache.jena.tdb.base.file.Location |
location(Dataset dataset)
Return the location of a dataset if it is backed by TDB, else null
|
static org.apache.jena.tdb.base.file.Location |
location(DatasetGraph datasetGraph)
Return the location of a DatasetGraph if it is backed by TDB, else null
|
static void |
release(Dataset dataset)
Release from the JVM.
|
static void |
release(DatasetGraph dataset)
Release from the JVM.
|
static void |
setup(org.apache.jena.tdb.base.file.Location location,
org.apache.jena.tdb.setup.StoreParams params)
Set the
StoreParams for specific Location. |
public static Dataset assembleDataset(String assemblerFile)
public static Dataset createDataset(String dir)
public static Dataset createDataset(org.apache.jena.tdb.base.file.Location location)
public static Dataset createDataset()
public static DatasetGraph createDatasetGraph(String directory)
public static DatasetGraph createDatasetGraph(org.apache.jena.tdb.base.file.Location location)
public static DatasetGraph createDatasetGraph()
public static void release(Dataset dataset)
public static void release(DatasetGraph dataset)
public static boolean isBackedByTDB(Dataset dataset)
public static boolean isBackedByTDB(DatasetGraph datasetGraph)
public static org.apache.jena.tdb.base.file.Location location(Dataset dataset)
public static org.apache.jena.tdb.base.file.Location location(DatasetGraph datasetGraph)
public static void setup(org.apache.jena.tdb.base.file.Location location, org.apache.jena.tdb.setup.StoreParams params)
StoreParams
for specific Location.
This call must only be called before a dataset from Location
is created. This operation should be used with care; bad choices
of StoreParams
can reduce performance.
See documentation.location
- The persistent storage locationparams
- StoreParams to useIllegalStateException
- If the dataset has already been setup.Licenced under the Apache License, Version 2.0