Tabnine Logo
AccumuloRyaDAO.getQueryEngine
Code IndexAdd Tabnine to your IDE (free)

How to use
getQueryEngine
method
in
org.apache.rya.accumulo.AccumuloRyaDAO

Best Java code snippets using org.apache.rya.accumulo.AccumuloRyaDAO.getQueryEngine (Showing top 3 results out of 315)

origin: apache/incubator-rya

public RyaStatement findStatement(final RyaStatement ryaStatement) throws RyaDAOException {
  RyaStatement resultRyaStatement = null;
  CloseableIteration<RyaStatement, RyaDAOException> iter = null;
  try {
    iter = accumuloRyaDao.getQueryEngine().query(ryaStatement, accumuloRyaDao.getConf());
    if (iter.hasNext()) {
      resultRyaStatement = iter.next();
    }
  } finally {
    if (iter != null) {
      iter.close();
    }
  }
  return resultRyaStatement;
}
origin: org.apache.rya/rya.export.accumulo

public RyaStatement findStatement(final RyaStatement ryaStatement) throws RyaDAOException {
  RyaStatement resultRyaStatement = null;
  CloseableIteration<RyaStatement, RyaDAOException> iter = null;
  try {
    iter = accumuloRyaDao.getQueryEngine().query(ryaStatement, accumuloRyaDao.getConf());
    if (iter.hasNext()) {
      resultRyaStatement = iter.next();
    }
  } finally {
    if (iter != null) {
      iter.close();
    }
  }
  return resultRyaStatement;
}
origin: apache/incubator-rya

/**
 * Gets the metadata key from the table.
 * @param ryaStatement the {@link RyaStatement} for the metadata key to query.
 * @param dao the {@link AccumuloRyaDAO}.
 * @return the string value of the object from the metadata key.
 * @throws RyaDAOException
 */
private static String getMetadata(final RyaStatement ryaStatement, final AccumuloRyaDAO dao) throws RyaDAOException {
  String metadata = null;
  final AccumuloRdfConfiguration config = dao.getConf();
  final CloseableIteration<RyaStatement, RyaDAOException> iter = dao.getQueryEngine().query(ryaStatement, config);
  if (iter.hasNext()) {
    metadata = iter.next().getObject().getData();
  }
  iter.close();
  return metadata;
}
org.apache.rya.accumuloAccumuloRyaDAOgetQueryEngine

Popular methods of AccumuloRyaDAO

  • <init>
  • setConnector
  • setConf
  • destroy
  • init
  • add
  • delete
  • flush
  • getConnector
  • getConf
  • checkVersion
  • commit
  • checkVersion,
  • commit,
  • compact,
  • createBatchDeleter,
  • deleteSingleRyaStatement,
  • drop,
  • flushIndexers,
  • getTables,
  • getVersion

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • putExtra (Intent)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now