private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
@Override public void addRelationship( String indexName, long id, String key, Object value, long startNode, long endNode ) { AddRelationshipCommand command = new AddRelationshipCommand(); command.init( definitions().getOrAssignIndexNameId( indexName ), id, definitions().getOrAssignKeyId( key ), value, startNode, endNode ); addCommand( indexName, command ); }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
command.init( indexByteId, entityId, keyId, value, startNode, endNode ); command.serialize( data );
command.init( indexNameId, entityId, keyId, value, startNode, endNode ); command.serialize( data );
private static Command addRelationship( int index, long id, int key, Object value, long startNode, long endNode ) { IndexCommand.AddRelationshipCommand command = new IndexCommand.AddRelationshipCommand(); command.init( index, id, key, value, startNode, endNode ); return command; }
@Override public void addRelationship( String indexName, long id, String key, Object value, long startNode, long endNode ) { AddRelationshipCommand command = new AddRelationshipCommand(); command.init( definitions().getOrAssignIndexNameId( indexName ), id, definitions().getOrAssignKeyId( key ), value, startNode, endNode ); addCommand( indexName, command ); }
private Command visitIndexAddRelationshipCommand( ReadableChannel channel ) throws IOException { IndexCommandHeader header = readIndexCommandHeader( channel ); Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt(); Object value = readIndexValue( header.valueType, channel ); Number startNode = header.startNodeNeedsLong ? channel.getLong() : channel.getInt(); Number endNode = header.endNodeNeedsLong ? channel.getLong() : channel.getInt(); AddRelationshipCommand command = new AddRelationshipCommand(); command.init( header.indexNameId, entityId.longValue(), header.keyId, value, startNode.longValue(), endNode.longValue() ); return command; }
private static AddRelationshipCommand addRelationshipToIndex( IndexDefineCommand definitions, String indexName ) { AddRelationshipCommand command = new AddRelationshipCommand(); command.init( definitions.getOrAssignIndexNameId( indexName ), 0L, (byte) 0, null, 1, 2 ); return command; }