use of com.questdb.store.factory.configuration.JournalMetadataBuilder in project questdb by bluestreak01.
the class JournalMetadataTest method testMetadataWrite.
@Test
public void testMetadataWrite() throws Exception {
JournalMetadataBuilder<Quote> b = new JournalMetadataBuilder<>(Quote.class);
UnstructuredFile hb = new UnstructuredFile(temp.newFile(), 10, JournalMode.APPEND);
JournalMetadata m = b.build();
m.write(hb);
JournalMetadata metadata = new JournalMetadata(hb, null);
hb.close();
Assert.assertTrue(m.isCompatible(metadata, false));
}
Aggregations