Search in sources :

Example 1 with JournalMetadataBuilder

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));
}
Also used : Quote(com.questdb.model.Quote) JournalMetadata(com.questdb.store.factory.configuration.JournalMetadata) JournalMetadataBuilder(com.questdb.store.factory.configuration.JournalMetadataBuilder) Test(org.junit.Test)

Aggregations

Quote (com.questdb.model.Quote)1 JournalMetadata (com.questdb.store.factory.configuration.JournalMetadata)1 JournalMetadataBuilder (com.questdb.store.factory.configuration.JournalMetadataBuilder)1 Test (org.junit.Test)1