public class DatasetGraphText
extends org.apache.jena.sparql.core.DatasetGraphMonitor
implements org.apache.jena.sparql.core.Transactional
| Constructor and Description |
|---|
DatasetGraphText(org.apache.jena.sparql.core.DatasetGraph dsg,
TextIndex index,
TextDocProducer producer) |
DatasetGraphText(org.apache.jena.sparql.core.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(org.apache.jena.query.ReadWrite readWrite) |
void |
begin(org.apache.jena.query.TxnType txnType) |
void |
close() |
void |
commit() |
void |
end() |
org.apache.jena.graph.Graph |
getDefaultGraph() |
org.apache.jena.graph.Graph |
getGraph(org.apache.jena.graph.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,
org.apache.jena.graph.Node predicate)
Search the text index on the text field associated with the predicate
|
Iterator<TextHit> |
search(String queryString,
org.apache.jena.graph.Node predicate,
int limit)
Search the text index on the text field associated with the predicate
|
Iterator<TextHit> |
search(String queryString,
org.apache.jena.graph.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, transactionTypepublic DatasetGraphText(org.apache.jena.sparql.core.DatasetGraph dsg,
TextIndex index,
TextDocProducer producer)
public DatasetGraphText(org.apache.jena.sparql.core.DatasetGraph dsg,
TextIndex index,
TextDocProducer producer,
boolean closeIndexOnClose)
public org.apache.jena.graph.Graph getDefaultGraph()
getDefaultGraph in interface org.apache.jena.sparql.core.DatasetGraphgetDefaultGraph in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode)
getGraph in interface org.apache.jena.sparql.core.DatasetGraphgetGraph in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic TextIndex getTextIndex()
public Iterator<TextHit> search(String queryString)
public Iterator<TextHit> search(String queryString, org.apache.jena.graph.Node predicate)
public Iterator<TextHit> search(String queryString, int limit)
public Iterator<TextHit> search(String queryString, org.apache.jena.graph.Node predicate, int limit)
public Iterator<TextHit> search(String queryString, org.apache.jena.graph.Node predicate, String graphURI, String lang, int limit)
public void begin(org.apache.jena.query.TxnType txnType)
begin in interface org.apache.jena.sparql.core.Transactionalbegin in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic void begin(org.apache.jena.query.ReadWrite readWrite)
begin in interface org.apache.jena.sparql.core.Transactionalbegin in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic void commit()
commit in interface org.apache.jena.sparql.core.Transactionalcommit in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic void abort()
abort in interface org.apache.jena.sparql.core.Transactionalabort in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic boolean isInTransaction()
isInTransaction in interface org.apache.jena.sparql.core.TransactionalisInTransaction in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic void end()
end in interface org.apache.jena.sparql.core.Transactionalend in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic boolean supportsTransactions()
supportsTransactions in interface org.apache.jena.sparql.core.DatasetGraphsupportsTransactions in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic boolean supportsTransactionAbort()
abort() is supported.
This goes along with clearing up after exceptions inside application transaction code.supportsTransactionAbort in interface org.apache.jena.sparql.core.DatasetGraphsupportsTransactionAbort in class org.apache.jena.sparql.core.DatasetGraphWrapperpublic void close()
close in interface org.apache.jena.atlas.lib.Closeableclose in interface org.apache.jena.sparql.core.DatasetGraphclose in class org.apache.jena.sparql.core.DatasetGraphWrapperLicenced under the Apache License, Version 2.0