@Deprecated @Override public BatchInserterIndex relationshipIndex( String indexName, Map<String, String> config ) { return provider.relationshipIndex( indexName, config ); }
public void indexRelationshipUsingBatchIndexer(BatchInserterIndexProvider indexProvider, EntityMetadata entityMetadata, long relationshipId, Map<String, Object> relationshipProperties, boolean relationshipAutoIndexingEnabled) { BatchInserterIndex relationshipIndex = null; if (!relationshipAutoIndexingEnabled && entityMetadata.isIndexable()) { relationshipIndex = indexProvider.relationshipIndex(entityMetadata.getIndexName(), MapUtil.stringMap("type", "exact")); } else { relationshipIndex = indexProvider.relationshipIndex("relationship_auto_index", MapUtil.stringMap("type", "exact")); } if (relationshipIndex != null) relationshipIndex.add(relationshipId, relationshipProperties); }
private BatchInserterIndex relationshipIndexFor(String indexName, String indexType) { return indexProvider.relationshipIndex(indexName, configFor(indexType)); }
public <T extends Element> Index<T> createIndex(final String indexName, final Class<T> indexClass, final Parameter... indexParameters) { final Neo4jBatchIndex<T> index; final Map<String, String> map = generateParameterMap(indexParameters); if (indexParameters.length == 0) { map.put(Neo4jBatchTokens.TYPE, Neo4jBatchTokens.EXACT); } if (Vertex.class.isAssignableFrom(indexClass)) { index = new Neo4jBatchIndex<T>(this, indexProvider.nodeIndex(indexName, map), indexName, indexClass); } else { index = new Neo4jBatchIndex<T>(this, indexProvider.relationshipIndex(indexName, map), indexName, indexClass); } this.indices.put(indexName, index); return index; }
public <T extends Element> Index<T> createIndex(final String indexName, final Class<T> indexClass, final Parameter... indexParameters) { final Neo4j2BatchIndex<T> index; final Map<String, String> map = generateParameterMap(indexParameters); if (indexParameters.length == 0) { map.put(Neo4j2BatchTokens.TYPE, Neo4j2BatchTokens.EXACT); } if (Vertex.class.isAssignableFrom(indexClass)) { index = new Neo4j2BatchIndex<T>(this, indexProvider.nodeIndex(indexName, map), indexName, indexClass); } else { index = new Neo4j2BatchIndex<T>(this, indexProvider.relationshipIndex(indexName, map), indexName, indexClass); } this.indices.put(indexName, index); return index; }
public void indexRelationshipUsingBatchIndexer(BatchInserterIndexProvider indexProvider, EntityMetadata entityMetadata, long relationshipId, Map<String, Object> relationshipProperties, boolean relationshipAutoIndexingEnabled) { BatchInserterIndex relationshipIndex = null; if (!relationshipAutoIndexingEnabled && entityMetadata.isIndexable()) { relationshipIndex = indexProvider.relationshipIndex(entityMetadata.getIndexName(), MapUtil.stringMap("type", "exact")); } else { relationshipIndex = indexProvider.relationshipIndex("relationship_auto_index", MapUtil.stringMap("type", "exact")); } if (relationshipIndex != null) relationshipIndex.add(relationshipId, relationshipProperties); }