Search in sources :

Example 6 with RemoveCommand

use of org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand in project neo4j by neo4j.

the class PhysicalLogCommandReaderV2_2_10 method visitIndexRemoveCommand.

private Command visitIndexRemoveCommand(ReadableChannel channel) throws IOException {
    IndexCommandHeader header = readIndexCommandHeader(channel);
    Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
    Object value = readIndexValue(header.valueType, channel);
    RemoveCommand command = new RemoveCommand();
    command.init(header.indexNameId, header.entityType, entityId.longValue(), header.keyId, value);
    return command;
}
Also used : RemoveCommand(org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand)

Example 7 with RemoveCommand

use of org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand in project neo4j by neo4j.

the class PhysicalLogCommandReaderV3_0_2 method visitIndexRemoveCommand.

private Command visitIndexRemoveCommand(ReadableChannel channel) throws IOException {
    IndexCommandHeader header = readIndexCommandHeader(channel);
    Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
    Object value = readIndexValue(header.valueType, channel);
    RemoveCommand command = new RemoveCommand();
    command.init(header.indexNameId, header.entityType, entityId.longValue(), header.keyId, value);
    return command;
}
Also used : RemoveCommand(org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand)

Example 8 with RemoveCommand

use of org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand in project neo4j by neo4j.

the class PhysicalLogCommandReaderV3_0 method visitIndexRemoveCommand.

private Command visitIndexRemoveCommand(ReadableChannel channel) throws IOException {
    IndexCommandHeader header = readIndexCommandHeader(channel);
    Number entityId = header.entityIdNeedsLong ? channel.getLong() : channel.getInt();
    Object value = readIndexValue(header.valueType, channel);
    RemoveCommand command = new RemoveCommand();
    command.init(header.indexNameId, header.entityType, entityId.longValue(), header.keyId, value);
    return command;
}
Also used : RemoveCommand(org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand)

Aggregations

RemoveCommand (org.neo4j.kernel.impl.index.IndexCommand.RemoveCommand)8 Test (org.junit.Test)1 IndexDefineCommand (org.neo4j.kernel.impl.index.IndexDefineCommand)1 InMemoryClosableChannel (org.neo4j.kernel.impl.transaction.log.InMemoryClosableChannel)1