@Override public double getCardinality(final AccumuloRdfConfiguration conf, final RdfEvalStatsDAO.CARDINALITY_OF card, final List<Value> val) throws RdfDAOException { return getCardinality(conf, card, val, null); } }
@Override public void destroy() throws RdfDAOException { if (!isInitialized()) { throw new IllegalStateException("Not initialized"); } isInitialized.set(false); }
rdfEvalStatsDAO = new AccumuloRdfEvalStatsDAO(); rdfEvalStatsDAO.setConf(conf); rdfEvalStatsDAO.setConnector(connector); rdfEvalStatsDAO.init(); rdfCloudTripleStoreEvaluationStatistics = new RdfCloudTripleStoreEvaluationStatistics<AccumuloRdfConfiguration>(conf, rdfEvalStatsDAO);
public void destroy() throws Exception { logger.info("Shutting down Sparql Query Pig Engine"); pigServer.shutdown(); if (ryaDAO != null) { ryaDAO.destroy(); } if (inferenceEngine != null) { inferenceEngine.destroy(); } if (rdfEvalStatsDAO != null) { rdfEvalStatsDAO.destroy(); } }
@Override public void destroy() throws RdfDAOException { if (!isInitialized()) { throw new IllegalStateException("Not initialized"); } isInitialized.set(false); }
@Override public double getCardinality(final AccumuloRdfConfiguration conf, final RdfEvalStatsDAO.CARDINALITY_OF card, final List<Value> val) throws RdfDAOException { return getCardinality(conf, card, val, null); } }
@Override public void init() throws RdfDAOException { try { if (isInitialized()) { throw new IllegalStateException("Already initialized"); } checkNotNull(connector); tableLayoutStrategy = conf.getTableLayoutStrategy(); // evalTable = conf.get(RdfCloudTripleStoreConfiguration.CONF_TBL_EVAL, evalTable); // conf.set(RdfCloudTripleStoreConfiguration.CONF_TBL_EVAL, evalTable); final TableOperations tos = connector.tableOperations(); AccumuloRdfUtils.createTableIfNotExist(tos, tableLayoutStrategy.getEval()); // boolean tableExists = tos.exists(evalTable); // if (!tableExists) // tos.create(evalTable); isInitialized.set(true); } catch (final Exception e) { throw new RdfDAOException(e); } }
@Override public void init() throws RdfDAOException { try { if (isInitialized()) { throw new IllegalStateException("Already initialized"); } checkNotNull(connector); tableLayoutStrategy = conf.getTableLayoutStrategy(); // evalTable = conf.get(RdfCloudTripleStoreConfiguration.CONF_TBL_EVAL, evalTable); // conf.set(RdfCloudTripleStoreConfiguration.CONF_TBL_EVAL, evalTable); final TableOperations tos = connector.tableOperations(); AccumuloRdfUtils.createTableIfNotExist(tos, tableLayoutStrategy.getEval()); // boolean tableExists = tos.exists(evalTable); // if (!tableExists) // tos.create(evalTable); isInitialized.set(true); } catch (final Exception e) { throw new RdfDAOException(e); } }