private void track( RecordStore<?> store, Collection<? extends AbstractBaseRecord> records ) { for ( AbstractBaseRecord record : records ) { track( store, record ); } }
private <RECORD extends AbstractBaseRecord> void track( RecordStore<RECORD> store, BaseCommand<RECORD> command ) { track( store, command.getAfter() ); }
@Override public boolean visitRelationshipCommand( RelationshipCommand command ) { track( neoStores.getRelationshipStore(), command ); return false; }
@Override public boolean visitRelationshipGroupCommand( RelationshipGroupCommand command ) { track( neoStores.getRelationshipGroupStore(), command ); return false; }
@Override public boolean visitSchemaRuleCommand( SchemaRuleCommand command ) { SchemaStore schemaStore = neoStores.getSchemaStore(); for ( DynamicRecord record : command.getRecordsAfter() ) { track( schemaStore, record ); } return false; }
@Override public boolean visitPropertyCommand( PropertyCommand command ) { PropertyStore propertyStore = neoStores.getPropertyStore(); track( propertyStore, command ); for ( PropertyBlock block : command.getAfter() ) { switch ( block.getType() ) { case STRING: track( propertyStore.getStringStore(), block.getValueRecords() ); break; case ARRAY: track( propertyStore.getArrayStore(), block.getValueRecords() ); break; default: // Not needed, no dynamic records then break; } } return false; }
private void track( RecordStore<?> store, Collection<? extends AbstractBaseRecord> records ) { for ( AbstractBaseRecord record : records ) { track( store, record ); } }
@Override public boolean visitRelationshipCommand( RelationshipCommand command ) { track( neoStores.getRelationshipStore(), command ); return false; }
@Override public boolean visitRelationshipGroupCommand( RelationshipGroupCommand command ) { track( neoStores.getRelationshipGroupStore(), command ); return false; }
private <RECORD extends AbstractBaseRecord> void track( RecordStore<RECORD> store, BaseCommand<RECORD> command ) { track( store, command.getAfter() ); }
@Override public boolean visitSchemaRuleCommand( SchemaRuleCommand command ) { SchemaStore schemaStore = neoStores.getSchemaStore(); for ( DynamicRecord record : command.getRecordsAfter() ) { track( schemaStore, record ); } return false; }
@Override public boolean visitPropertyCommand( PropertyCommand command ) { PropertyStore propertyStore = neoStores.getPropertyStore(); track( propertyStore, command ); for ( PropertyBlock block : command.getAfter() ) { switch ( block.getType() ) { case STRING: track( propertyStore.getStringStore(), block.getValueRecords() ); break; case ARRAY: track( propertyStore.getArrayStore(), block.getValueRecords() ); break; default: // Not needed, no dynamic records then break; } } return false; }