/** * Initialize the operation * * @param args the operation arguments */ @Override protected void onInitialize(Object[] args) { super.onInitialize(args); @SuppressWarnings("rawtypes") final AutoIndexer indexer = ((Neo4jGraph) getGraph()).getRawGraph().index().getRelationshipAutoIndexer(); haveIndexer = indexer.isEnabled() && indexer.getAutoIndexedProperties().contains(key); if (!haveIndexer) { throw new RuntimeException("AutoIndexer is not enabled for key " + key); } }
/** * Initialize the operation * * @param args the operation arguments */ @Override protected void onInitialize(Object[] args) { super.onInitialize(args); types = DexUtils.getEdgeTypes(((DexGraph) getGraph()).getRawGraph()); }