public class SolutionSetManager extends Object implements ISolutionSetManager
Constructor and Description |
---|
SolutionSetManager(IBTreeManager store,
String namespace,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
void |
clearAllSolutions()
Clear all named solution sets.
|
boolean |
clearSolutions(String solutionSet)
Clear the specified named solution set.
|
void |
close()
Shutdown.
|
void |
createSolutions(String solutionSet,
ISPO[] params)
Create a named solution set.
|
boolean |
existsSolutions(String solutionSet)
Return
true iff a named solution set exists. |
protected ISPO[] |
getDefaultMetadata()
Return the default metadata used when a named solution set is declared
implicitly rather than explicitly.
|
ICloseableIterator<IBindingSet[]> |
getSolutions(String solutionSet)
Read the solutions from a named solution set.
|
ISolutionSetStats |
getSolutionSetStats(String solutionSet)
Return computed statistics for a named solution set.
|
void |
init()
One time initialization.
|
void |
putSolutions(String solutionSet,
ICloseableIterator<IBindingSet[]> src)
Save the solutions into a named solution set.
|
String |
toString() |
public SolutionSetManager(IBTreeManager store, String namespace, long timestamp)
public void init()
ISolutionSetManager
init
in interface ISolutionSetManager
public void close()
Note: Explicit close is not safe. We want to destroy to cached solution
sets if the AbstractTripleStore is destroyed. The hook is currently in
AbstractResource.destroy()
.
close
in interface ISolutionSetManager
public void clearAllSolutions()
ISolutionSetManager
clearAllSolutions
in interface ISolutionSetManager
public boolean existsSolutions(String solutionSet)
ISolutionSetManager
true
iff a named solution set exists.existsSolutions
in interface ISolutionSetManager
solutionSet
- The name of the solution set.true
iff a solution set having that name exists.public boolean clearSolutions(String solutionSet)
ISolutionSetManager
clearSolutions
in interface ISolutionSetManager
solutionSet
- The name of the solution set.true
iff a solution set by that name existed and was
cleared.public void putSolutions(String solutionSet, ICloseableIterator<IBindingSet[]> src)
ISolutionSetManager
putSolutions
in interface ISolutionSetManager
solutionSet
- The name of the solution set.src
- The solutions.public void createSolutions(String solutionSet, ISPO[] params)
ISolutionSetManager
createSolutions
in interface ISolutionSetManager
solutionSet
- The name of the solution set.params
- The configuration parameters (optional).public ISolutionSetStats getSolutionSetStats(String solutionSet)
ISolutionSetManager
getSolutionSetStats
in interface ISolutionSetManager
solutionSet
- The name of the solution set.null
if there is no such named
solution set.public ICloseableIterator<IBindingSet[]> getSolutions(String solutionSet)
ISolutionSetManager
getSolutions
in interface ISolutionSetManager
solutionSet
- The name of the solution set.protected ISPO[] getDefaultMetadata()
IndexMetadata
. However, we do want to provide this
metadata in a CREATE schema as triples.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.