Class DatasetGraphText

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, org.apache.jena.sparql.core.DatasetGraph, org.apache.jena.sparql.core.Transactional

public class DatasetGraphText extends DatasetGraphTextMonitor implements org.apache.jena.sparql.core.Transactional
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Constructor Summary

    Constructors
    Constructor
    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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
     
    void
     
    void
    end()
     
    org.apache.jena.graph.Graph
     
    org.apache.jena.graph.Graph
    getGraph(org.apache.jena.graph.Node graphNode)
     
     
    boolean
     
    search(String queryString)
    Search the text index on the default text field
    search(String queryString, int limit)
    Search the text index on the default text field
    search(String queryString, org.apache.jena.graph.Node predicate)
    Search the text index on the text field associated with the predicate
    search(String queryString, org.apache.jena.graph.Node predicate, int limit)
    Search the text index on the text field associated with the predicate
    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
    Declare whether abort() 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, 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

      public DatasetGraphText(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex index, TextDocProducer producer)
    • DatasetGraphText

      public DatasetGraphText(org.apache.jena.sparql.core.DatasetGraph dsg, TextIndex index, TextDocProducer producer, boolean closeIndexOnClose)
  • Method Details

    • getDefaultGraph

      public org.apache.jena.graph.Graph getDefaultGraph()
      Specified by:
      getDefaultGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      getDefaultGraph in class DatasetGraphTextMonitor
    • getGraph

      public org.apache.jena.graph.Graph getGraph(org.apache.jena.graph.Node graphNode)
      Specified by:
      getGraph in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      getGraph in class DatasetGraphTextMonitor
    • getTextIndex

      public TextIndex getTextIndex()
    • search

      public Iterator<TextHit> search(String queryString)
      Search the text index on the default text field
    • search

      public Iterator<TextHit> search(String queryString, org.apache.jena.graph.Node predicate)
      Search the text index on the text field associated with the predicate
    • search

      public Iterator<TextHit> search(String queryString, int limit)
      Search the text index on the default text field
    • search

      public 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
    • search

      public 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
    • begin

      public void begin(org.apache.jena.query.TxnType txnType)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      begin in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • begin

      public void begin(org.apache.jena.query.ReadWrite readWrite)
      Specified by:
      begin in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      begin in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • commit

      public void commit()
      Specified by:
      commit in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      commit in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • abort

      public void abort()
      Rollback all changes, discarding any exceptions that occur.
      Specified by:
      abort in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      abort in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • isInTransaction

      public boolean isInTransaction()
      Specified by:
      isInTransaction in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      isInTransaction in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • end

      public void end()
      Specified by:
      end in interface org.apache.jena.sparql.core.Transactional
      Overrides:
      end in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • supportsTransactions

      public boolean supportsTransactions()
      Specified by:
      supportsTransactions in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      supportsTransactions in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • supportsTransactionAbort

      public boolean supportsTransactionAbort()
      Declare whether abort() is supported. This goes along with clearing up after exceptions inside application transaction code.
      Specified by:
      supportsTransactionAbort in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      supportsTransactionAbort in class org.apache.jena.sparql.core.DatasetGraphWrapper
    • close

      public void close()
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface org.apache.jena.sparql.core.DatasetGraph
      Overrides:
      close in class org.apache.jena.sparql.core.DatasetGraphWrapper