@Override public BatchRelationship getRelationshipById( long relId ) { return delegate.getRelationshipById( relId ); }
@Deprecated public LuceneBatchInserterIndexProviderNewImpl( final BatchInserter inserter ) { this.inserter = inserter; this.indexStore = ((IndexConfigStoreProvider) inserter).getIndexStore(); this.relationshipLookup = id -> { // TODO too may objects allocated here BatchRelationship rel = inserter.getRelationshipById( id ); return new EntityId.RelationshipData( id, rel.getStartNode(), rel.getEndNode() ); }; }
@Test public void testSimple() { BatchInserter graphDb = globalInserter; long node1 = graphDb.createNode( null ); long node2 = graphDb.createNode( null ); long rel1 = graphDb.createRelationship( node1, node2, RelTypes.BATCH_TEST, null ); BatchRelationship rel = graphDb.getRelationshipById( rel1 ); assertEquals( rel.getStartNode(), node1 ); assertEquals( rel.getEndNode(), node2 ); assertEquals( RelTypes.BATCH_TEST.name(), rel.getType().name() ); }
@Override public BatchRelationship getRelationshipById( long relId ) { return delegate.getRelationshipById( relId ); }
String type = null; try { rel = sourceDb.getRelationshipById(relId++); type = rel.getType().name(); if (!ignoreRelTypes.contains(type)) {