protected String[] getTables() { // core tables final List<String> tableNames = Lists.newArrayList( tableLayoutStrategy.getSpo(), tableLayoutStrategy.getPo(), tableLayoutStrategy.getOsp(), tableLayoutStrategy.getNs(), tableLayoutStrategy.getEval()); // Additional Tables for (final AccumuloIndexer index : secondaryIndexers) { tableNames.add(index.getTableName()); } return tableNames.toArray(new String[]{}); }
protected String[] getTables() { // core tables final List<String> tableNames = Lists.newArrayList( tableLayoutStrategy.getSpo(), tableLayoutStrategy.getPo(), tableLayoutStrategy.getOsp(), tableLayoutStrategy.getNs(), tableLayoutStrategy.getEval()); // Additional Tables for (final AccumuloIndexer index : secondaryIndexers) { tableNames.add(index.getTableName()); } return tableNames.toArray(new String[]{}); }
@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); } }
try { final Authorizations authorizations = conf.getAuthorizations(); final Scanner scanner = connector.createScanner(tableLayoutStrategy.getEval(), authorizations); Text cfTxt = null; if (CARDINALITY_OF.SUBJECT.equals(card)) {
try { final Authorizations authorizations = conf.getAuthorizations(); final Scanner scanner = connector.createScanner(tableLayoutStrategy.getEval(), authorizations); Text cfTxt = null; if (CARDINALITY_OF.SUBJECT.equals(card)) {
tables.add( coreTableNames.getPo() ); tables.add( coreTableNames.getOsp() ); tables.add( coreTableNames.getEval() ); tables.add( coreTableNames.getNs() ); tables.add( coreTableNames.getProspects() );
tables.add( coreTableNames.getPo() ); tables.add( coreTableNames.getOsp() ); tables.add( coreTableNames.getEval() ); tables.add( coreTableNames.getNs() ); tables.add( coreTableNames.getProspects() );
public void setTableLayoutStrategy(final TableLayoutStrategy tableLayoutStrategy) { if (tableLayoutStrategy != null) { this.tableLayoutStrategy = tableLayoutStrategy; } else { this.tableLayoutStrategy = new TablePrefixLayoutStrategy(); //default } set(CONF_TBL_SPO, this.tableLayoutStrategy.getSpo()); set(CONF_TBL_PO, this.tableLayoutStrategy.getPo()); set(CONF_TBL_OSP, this.tableLayoutStrategy.getOsp()); set(CONF_TBL_NS, this.tableLayoutStrategy.getNs()); set(CONF_TBL_EVAL, this.tableLayoutStrategy.getEval()); }
public void setTableLayoutStrategy(final TableLayoutStrategy tableLayoutStrategy) { if (tableLayoutStrategy != null) { this.tableLayoutStrategy = tableLayoutStrategy; } else { this.tableLayoutStrategy = new TablePrefixLayoutStrategy(); //default } set(CONF_TBL_SPO, this.tableLayoutStrategy.getSpo()); set(CONF_TBL_PO, this.tableLayoutStrategy.getPo()); set(CONF_TBL_OSP, this.tableLayoutStrategy.getOsp()); set(CONF_TBL_NS, this.tableLayoutStrategy.getNs()); set(CONF_TBL_EVAL, this.tableLayoutStrategy.getEval()); }