use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class MessageConsistencyLoggerTest method shouldFormatWarningForRecord.
@Test
void shouldFormatWarningForRecord() {
// when
logger.warning(RecordType.NEO_STORE, new NeoStoreRecord(), "sample message", 1, 2);
// then
logMatcher.forLevel(WARN).containsMessages(join("sample message", neoStoreRecord(true, -1), "Inconsistent with: 1 2"));
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class NeoStoreCheckTypeTest method inUseRecordEquality.
@Test
public void inUseRecordEquality() {
NeoStoreRecord record1 = new NeoStoreRecord();
record1.initialize(true, 1);
NeoStoreRecord record2 = record1.clone();
NeoStoreCheckType check = new NeoStoreCheckType();
assertTrue(check.equal(record1, record2));
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV3_0_2 method visitNeoStoreCommand.
private Command visitNeoStoreCommand(ReadableChannel channel) throws IOException {
NeoStoreRecord before = readNeoStoreRecord(channel);
NeoStoreRecord after = readNeoStoreRecord(channel);
return new Command.NeoStoreCommand(before, after);
}
use of org.neo4j.kernel.impl.store.record.NeoStoreRecord in project neo4j by neo4j.
the class PhysicalLogCommandReaderV2_2_4 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_0 method visitNeoStoreCommand.
private Command visitNeoStoreCommand(ReadableChannel channel) throws IOException {
NeoStoreRecord before = readNeoStoreRecord(channel);
NeoStoreRecord after = readNeoStoreRecord(channel);
return new Command.NeoStoreCommand(before, after);
}
Aggregations