java.lang.Object
org.apache.jena.sparql.core.DatasetGraphWrapper
org.apache.jena.query.text.changes.DatasetGraphTextMonitor
org.apache.jena.query.text.DatasetGraphText
- All Implemented Interfaces:
org.apache.jena.atlas.lib.Closeable
,org.apache.jena.atlas.lib.Sync
,DatasetGraph
,Transactional
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetGraphText
(DatasetGraph dsg, TextIndex index, TextDocProducer producer) DatasetGraphText
(DatasetGraph dsg, TextIndex index, TextDocProducer producer, boolean closeIndexOnClose) -
Method Summary
Modifier and TypeMethodDescriptionvoid
abort()
Rollback all changes, discarding any exceptions that occur.void
void
void
close()
void
commit()
void
end()
boolean
Search the text index on the default text fieldSearch the text index on the default text fieldSearch the text index on the text field associated with the predicateSearch the text index on the text field associated with the predicateSearch the text index on the text field associated with the predicate within graphboolean
Declare whetherabort()
is supported.boolean
Methods inherited from class org.apache.jena.query.text.changes.DatasetGraphTextMonitor
add, add, addGraph, delete, delete, deleteAny, getMonitor, monitored, removeGraph, sync
Methods inherited from class org.apache.jena.sparql.core.DatasetGraphWrapper
begin, clear, contains, contains, containsGraph, find, find, find, findNG, getBase, getBaseForQuery, getContext, getLock, getUnionGraph, getWrapped, isEmpty, listGraphNodes, prefixes, promote, promote, setDefaultGraph, size, toString, transactionMode, transactionType, unwrap
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.jena.sparql.core.DatasetGraph
addAll, stream, stream
Methods inherited from interface org.apache.jena.sparql.core.Transactional
begin, calc, calculate, calculateRead, calculateWrite, exec, execute, executeRead, executeWrite, promote, promote, transactionMode, transactionType
-
Constructor Details
-
DatasetGraphText
-
DatasetGraphText
public DatasetGraphText(DatasetGraph dsg, TextIndex index, TextDocProducer producer, boolean closeIndexOnClose)
-
-
Method Details
-
getDefaultGraph
- Specified by:
getDefaultGraph
in interfaceDatasetGraph
- Overrides:
getDefaultGraph
in classDatasetGraphTextMonitor
-
getGraph
- Specified by:
getGraph
in interfaceDatasetGraph
- Overrides:
getGraph
in classDatasetGraphTextMonitor
-
getTextIndex
-
search
Search the text index on the default text field -
search
Search the text index on the text field associated with the predicate -
search
Search the text index on the default text field -
search
Search the text index on the text field associated with the predicate -
search
public Iterator<TextHit> search(String queryString, Node predicate, String graphURI, String lang, int limit) Search the text index on the text field associated with the predicate within graph -
begin
- Specified by:
begin
in interfaceTransactional
- Overrides:
begin
in classDatasetGraphWrapper
-
begin
- Specified by:
begin
in interfaceTransactional
- Overrides:
begin
in classDatasetGraphWrapper
-
commit
public void commit()- Specified by:
commit
in interfaceTransactional
- Overrides:
commit
in classDatasetGraphWrapper
-
abort
public void abort()Rollback all changes, discarding any exceptions that occur.- Specified by:
abort
in interfaceTransactional
- Overrides:
abort
in classDatasetGraphWrapper
-
isInTransaction
public boolean isInTransaction()- Specified by:
isInTransaction
in interfaceTransactional
- Overrides:
isInTransaction
in classDatasetGraphWrapper
-
end
public void end()- Specified by:
end
in interfaceTransactional
- Overrides:
end
in classDatasetGraphWrapper
-
supportsTransactions
public boolean supportsTransactions()- Specified by:
supportsTransactions
in interfaceDatasetGraph
- Overrides:
supportsTransactions
in classDatasetGraphWrapper
-
supportsTransactionAbort
public boolean supportsTransactionAbort()Declare whetherabort()
is supported. This goes along with clearing up after exceptions inside application transaction code.- Specified by:
supportsTransactionAbort
in interfaceDatasetGraph
- Overrides:
supportsTransactionAbort
in classDatasetGraphWrapper
-
close
public void close()- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
- Specified by:
close
in interfaceDatasetGraph
- Overrides:
close
in classDatasetGraphWrapper
-