public class DatasetGraphText extends DatasetGraphMonitor implements Transactional
Transactional.Promote| Constructor and Description |
|---|
DatasetGraphText(DatasetGraph dsg,
TextIndex index,
TextDocProducer producer) |
DatasetGraphText(DatasetGraph dsg,
TextIndex index,
TextDocProducer producer,
boolean closeIndexOnClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Rollback all changes, discarding any exceptions that occur.
|
void |
begin(ReadWrite readWrite) |
void |
begin(TxnType txnType) |
void |
close() |
void |
commit() |
void |
end() |
Graph |
getDefaultGraph() |
Graph |
getGraph(Node graphNode) |
TextIndex |
getTextIndex() |
boolean |
isInTransaction() |
Iterator<TextHit> |
search(String queryString)
Search the text index on the default text field
|
Iterator<TextHit> |
search(String queryString,
int limit)
Search the text index on the default text field
|
Iterator<TextHit> |
search(String queryString,
Node predicate)
Search the text index on the text field associated with the predicate
|
Iterator<TextHit> |
search(String queryString,
Node predicate,
int limit)
Search the text index on the text field associated with the predicate
|
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
|
boolean |
supportsTransactionAbort()
Declare whether
abort() is supported. |
boolean |
supportsTransactions() |
add, add, addGraph, delete, delete, deleteAny, getMonitor, monitored, removeGraph, syncbegin, clear, contains, contains, containsGraph, find, find, find, findNG, getBase, getBaseForQuery, getContext, getLock, getUnionGraph, getWrapped, isEmpty, listGraphNodes, promote, promote, setDefaultGraph, size, toString, transactionMode, transactionTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitbegin, promote, promote, transactionMode, transactionTypepublic DatasetGraphText(DatasetGraph dsg, TextIndex index, TextDocProducer producer)
public DatasetGraphText(DatasetGraph dsg, TextIndex index, TextDocProducer producer, boolean closeIndexOnClose)
public Graph getDefaultGraph()
getDefaultGraph in interface DatasetGraphgetDefaultGraph in class DatasetGraphWrapperpublic Graph getGraph(Node graphNode)
getGraph in interface DatasetGraphgetGraph in class DatasetGraphWrapperpublic TextIndex getTextIndex()
public Iterator<TextHit> search(String queryString)
public Iterator<TextHit> search(String queryString, Node predicate)
public Iterator<TextHit> search(String queryString, int limit)
public Iterator<TextHit> search(String queryString, Node predicate, int limit)
public Iterator<TextHit> search(String queryString, Node predicate, String graphURI, String lang, int limit)
public void begin(TxnType txnType)
begin in interface Transactionalbegin in class DatasetGraphWrapperpublic void begin(ReadWrite readWrite)
begin in interface Transactionalbegin in class DatasetGraphWrapperpublic void commit()
commit in interface Transactionalcommit in class DatasetGraphWrapperpublic void abort()
abort in interface Transactionalabort in class DatasetGraphWrapperpublic boolean isInTransaction()
isInTransaction in interface TransactionalisInTransaction in class DatasetGraphWrapperpublic void end()
end in interface Transactionalend in class DatasetGraphWrapperpublic boolean supportsTransactions()
supportsTransactions in interface DatasetGraphsupportsTransactions in class DatasetGraphWrapperpublic boolean supportsTransactionAbort()
abort() is supported.
This goes along with clearing up after exceptions inside application transaction code.supportsTransactionAbort in interface DatasetGraphsupportsTransactionAbort in class DatasetGraphWrapperpublic void close()
close in interface org.apache.jena.atlas.lib.Closeableclose in interface DatasetGraphclose in class DatasetGraphWrapperLicenced under the Apache License, Version 2.0