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[]{}); }
public static String layoutToTable(TABLE_LAYOUT layout, TableLayoutStrategy tableLayoutStrategy) { if (tableLayoutStrategy == null) { tableLayoutStrategy = new TablePrefixLayoutStrategy(); } switch (layout) { case SPO: { return tableLayoutStrategy.getSpo(); } case PO: { return tableLayoutStrategy.getPo(); } case OSP: { return tableLayoutStrategy.getOsp(); } } return null; }
public static String layoutToTable(TABLE_LAYOUT layout, TableLayoutStrategy tableLayoutStrategy) { if (tableLayoutStrategy == null) { tableLayoutStrategy = new TablePrefixLayoutStrategy(); } switch (layout) { case SPO: { return tableLayoutStrategy.getSpo(); } case PO: { return tableLayoutStrategy.getPo(); } case OSP: { return tableLayoutStrategy.getOsp(); } } return null; }
tables.add( coreTableNames.getPo() ); tables.add( coreTableNames.getOsp() ); tables.add( coreTableNames.getEval() );
tables.add( coreTableNames.getPo() ); tables.add( coreTableNames.getOsp() ); tables.add( coreTableNames.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()); }
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()); }
AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getPo()); AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getOsp()); AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getNs()); bw_po = mt_bw.getBatchWriter(tableLayoutStrategy.getPo()); bw_osp = mt_bw.getBatchWriter(tableLayoutStrategy.getOsp());
bd_po = createBatchDeleter(tableLayoutStrategy.getPo(), conf.getAuthorizations()); bd_osp = createBatchDeleter(tableLayoutStrategy.getOsp(), conf.getAuthorizations());
bd_po = createBatchDeleter(tableLayoutStrategy.getPo(), conf.getAuthorizations()); bd_osp = createBatchDeleter(tableLayoutStrategy.getOsp(), conf.getAuthorizations());
AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getPo()); AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getOsp()); AccumuloRdfUtils.createTableIfNotExist(tableOperations, tableLayoutStrategy.getNs()); bw_po = mt_bw.getBatchWriter(tableLayoutStrategy.getPo()); bw_osp = mt_bw.getBatchWriter(tableLayoutStrategy.getOsp());