private IndexIdentifier(TitanIndex index) { Preconditions.checkArgument(index != null); indexName = index.name(); if (index instanceof RelationTypeIndex) relationTypeName = ((RelationTypeIndex) index).getType().name(); else relationTypeName = null; Preconditions.checkArgument(StringUtils.isNotBlank(indexName)); hashcode = new HashCodeBuilder().append(indexName).append(relationTypeName).hashCode(); }
break; case REINDEX: throw new UnsupportedOperationException(updateAction + " requires a manual step: run a MapReduce reindex on index name \"" + index.getName() + "\""); case ENABLE_INDEX: setStatus(schemaVertex,SchemaStatus.ENABLED,keySubset);
final String indexName = index.name(); final String relationTypeName = RelationTypeIndex.class.isAssignableFrom(index.getClass()) ?
private IndexIdentifier(TitanIndex index) { Preconditions.checkArgument(index != null); indexName = index.name(); if (index instanceof RelationTypeIndex) relationTypeName = ((RelationTypeIndex) index).getType().name(); else relationTypeName = null; Preconditions.checkArgument(StringUtils.isNotBlank(indexName)); hashcode = new HashCodeBuilder().append(indexName).append(relationTypeName).hashCode(); }
final String indexName = index.name(); final String relationTypeName = RelationTypeIndex.class.isAssignableFrom(index.getClass()) ?