Search in sources :

Example 1 with AddNodeCommand

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;
}
Also used : AddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)

Example 2 with AddNodeCommand

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;
}
Also used : AddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)

Example 3 with AddNodeCommand

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;
}
Also used : AddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)

Example 4 with AddNodeCommand

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;
}
Also used : AddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)

Example 5 with AddNodeCommand

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;
}
Also used : AddNodeCommand(org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)

Aggregations

AddNodeCommand (org.neo4j.kernel.impl.index.IndexCommand.AddNodeCommand)8