use of org.neo4j.kernel.impl.store.format.RecordFormat in project neo4j by neo4j.
the class IdGeneratorTest method makeSureIdCapacityCannotBeExceeded.
@Test
public void makeSureIdCapacityCannotBeExceeded() throws Exception {
RecordFormats formats = Standard.LATEST_RECORD_FORMATS;
List<RecordFormat<? extends AbstractBaseRecord>> recordFormats = Arrays.asList(formats.node(), formats.dynamic(), formats.labelToken(), formats.property(), formats.propertyKeyToken(), formats.relationship(), formats.relationshipGroup(), formats.relationshipTypeToken());
for (RecordFormat format : recordFormats) {
makeSureIdCapacityCannotBeExceeded(format);
}
}
use of org.neo4j.kernel.impl.store.format.RecordFormat in project neo4j by neo4j.
the class InputEntityCacherTokenCreationTest method mockRecordFormats.
private RecordFormats mockRecordFormats(long maxPropertyKeyId, long maxLabelId, long maxRelationshipTypeId, long maxRelationshipGroupId) {
RecordFormats recordFormats = mock(RecordFormats.class);
RecordFormat propertyKeyTokenFormat = getRecordFormatMock(maxPropertyKeyId);
RecordFormat labelTokenFormat = getRecordFormatMock(maxLabelId);
RecordFormat relationshipTypeTokenFormat = getRecordFormatMock(maxRelationshipTypeId);
RecordFormat relationshipGroupTokenFormat = getRecordFormatMock(maxRelationshipGroupId);
when(recordFormats.propertyKeyToken()).thenReturn(propertyKeyTokenFormat);
when(recordFormats.labelToken()).thenReturn(labelTokenFormat);
when(recordFormats.relationshipTypeToken()).thenReturn(relationshipTypeTokenFormat);
when(recordFormats.relationshipGroup()).thenReturn(relationshipGroupTokenFormat);
return recordFormats;
}
use of org.neo4j.kernel.impl.store.format.RecordFormat in project neo4j by neo4j.
the class InputEntityCacherTokenCreationTest method getRecordFormatMock.
private RecordFormat getRecordFormatMock(long maxId) {
RecordFormat recordFormat = mock(RecordFormat.class);
when(recordFormat.getMaxId()).thenReturn(maxId);
return recordFormat;
}
Aggregations