use of org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_2 method visitIndexAddNodeCommand.
private Command visitIndexAddNodeCommand(ReadableChannel channel) throws IOException {
IndexCommandHeader header = readIndexCommandHeader(channel);
Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
Object value = readIndexValue(header.valueType, channel);
AddNodeCommand command = new AddNodeCommand();
command.init(header.indexNameId, entityId.longValue(), header.keyId, value);
return command;
}
use of org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand in project neo4j by neo4j.
the class PhysicalLogCommandReaderV3_0_2 method visitIndexAddNodeCommand.
private Command visitIndexAddNodeCommand(ReadableChannel channel) throws IOException {
IndexCommandHeader header = readIndexCommandHeader(channel);
Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
Object value = readIndexValue(header.valueType, channel);
AddNodeCommand command = new AddNodeCommand();
command.init(header.indexNameId, entityId.longValue(), header.keyId, value);
return command;
}
use of org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_2_10 method visitIndexAddNodeCommand.
private Command visitIndexAddNodeCommand(ReadableChannel channel) throws IOException {
IndexCommandHeader header = readIndexCommandHeader(channel);
Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
Object value = readIndexValue(header.valueType, channel);
AddNodeCommand command = new AddNodeCommand();
command.init(header.indexNameId, entityId.longValue(), header.keyId, value);
return command;
}
use of org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_2_4 method visitIndexAddNodeCommand.
private Command visitIndexAddNodeCommand(ReadableChannel channel) throws IOException {
IndexCommandHeader header = readIndexCommandHeader(channel);
Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
Object value = readIndexValue(header.valueType, channel);
AddNodeCommand command = new AddNodeCommand();
command.init(header.indexNameId, entityId.longValue(), header.keyId, value);
return command;
}
use of org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand in project neo4j by neo4j.
the class LegacyBatchIndexApplierTest method addNodeToIndex.
private static AddNodeCommand addNodeToIndex(IndexDefineCommand definitions, String indexName) {
AddNodeCommand command = new AddNodeCommand();
command.init(definitions.getOrAssignIndexNameId(indexName), 0L, (byte) 0, null);
return command;
}
Aggregations