Package com.tinkerpop.blueprints

Examples of com.tinkerpop.blueprints.IndexableGraph


   * @param existing element to remove index entries
   * @param indexName name of index associated to element
   */
  public static <Type extends Element> void removeFromIndex(Graph database, Type existing, IndexNames indexName) {
    if (database instanceof IndexableGraph) {
      IndexableGraph indexable = (IndexableGraph) database;
      if(indexName.isUsable()) {
        Index<Type> index = (Index<Type>) indexable.getIndex(indexName.getIndexName(), indexName.getIndexed());
        for(String propertyName : existing.getPropertyKeys()) {
          index.remove(propertyName, existing.getProperty(propertyName), existing);
        }
      }
    }
View Full Code Here

TOP

Related Classes of com.tinkerpop.blueprints.IndexableGraph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.