@Override public boolean containsGraphIndex(String name) { return getGraphIndex(name) != null; }
private void checkIndexName(String indexName) { Preconditions.checkArgument(StringUtils.isNotBlank(indexName)); Preconditions.checkArgument(getGraphIndex(indexName) == null, "An index with name '%s' has already been defined", indexName); }
private TitanIndex retrieve(ManagementSystem mgmt) { if (relationTypeName == null) return mgmt.getGraphIndex(indexName); else return mgmt.getRelationIndex(mgmt.getRelationType(relationTypeName), indexName); }
index = mgmt.getGraphIndex(indexName); } else { indexRelationType = mgmt.getRelationType(indexRelationTypeName);
@Override public boolean containsGraphIndex(String name) { return getGraphIndex(name)!=null; }
@Override public boolean containsGraphIndex(String name) { return getGraphIndex(name) != null; }
private void checkIndexName(String indexName) { Preconditions.checkArgument(StringUtils.isNotBlank(indexName)); Preconditions.checkArgument(getGraphIndex(indexName) == null, "An index with name '%s' has already been defined", indexName); }
private void checkIndexName(String indexName) { Preconditions.checkArgument(StringUtils.isNotBlank(indexName)); Preconditions.checkArgument(getGraphIndex(indexName) == null, "An index with name '%s' has already been defined", indexName); }
private TitanIndex retrieve(ManagementSystem mgmt) { if (relationTypeName == null) return mgmt.getGraphIndex(indexName); else return mgmt.getRelationIndex(mgmt.getRelationType(relationTypeName), indexName); }
index = mgmt.getGraphIndex(indexName); } else { indexRelationType = mgmt.getRelationType(indexRelationTypeName);
logger.log(Level.INFO, "status for {0} {1}", new Object[]{indexName, indexStatus}); manager = (ManagementSystem) getTitanGraph().openManagement(); manager.updateIndex(manager.getGraphIndex(indexName), SchemaAction.REINDEX).get(); } catch (Exception ex) { logger.log(Level.SEVERE, null, ex);