use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class MetaDataStore method graphPropertyRecord.
public NeoStoreRecord graphPropertyRecord() {
NeoStoreRecord result = new NeoStoreRecord();
result.setNextProp(getGraphNextProp());
return result;
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_1 method visitNeoStoreCommand.
private Command visitNeoStoreCommand(ReadableChannel channel) throws IOException {
long nextProp = channel.getLong();
NeoStoreRecord record = new NeoStoreRecord();
record.setNextProp(nextProp);
return new Command.NeoStoreCommand(null, record);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_0 method visitNeoStoreCommand.
private Command visitNeoStoreCommand(ReadableChannel channel) throws IOException {
long nextProp = channel.getLong();
NeoStoreRecord record = new NeoStoreRecord();
record.setNextProp(nextProp);
return new Command.NeoStoreCommand(null, record);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_2 method visitNeoStoreCommand.
private Command visitNeoStoreCommand(ReadableChannel channel) throws IOException {
long nextProp = channel.getLong();
NeoStoreRecord record = new NeoStoreRecord();
record.setNextProp(nextProp);
return new Command.NeoStoreCommand(null, record);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV3_0Test method shouldReadNeoStoreCommand.
@Test
public void shouldReadNeoStoreCommand() throws Throwable {
// Given
InMemoryClosableChannel channel = new InMemoryClosableChannel();
NeoStoreRecord before = new NeoStoreRecord();
NeoStoreRecord after = new NeoStoreRecord();
after.setNextProp(42);
new Command.NeoStoreCommand(before, after).serialize(channel);
// When
PhysicalLogCommandReaderV3_0 reader = new PhysicalLogCommandReaderV3_0();
Command command = reader.read(channel);
assertTrue(command instanceof Command.NeoStoreCommand);
Command.NeoStoreCommand neoStoreCommand = (Command.NeoStoreCommand) command;
// Then
assertEquals(before.getNextProp(), neoStoreCommand.getBefore().getNextProp());
assertEquals(after.getNextProp(), neoStoreCommand.getAfter().getNextProp());
}
Aggregations