use of jetbrains.exodus.env.EnvironmentImpl in project xodus by JetBrains.
the class ProcessRunner method step.
private void step() throws Exception {
Entity entity = txn.newEntity("Person");
entity.setProperty("name", "Vadim");
entity.setProperty("password", "dummypassword");
byte[] blob = new byte[1024 * 1024];
Arrays.fill(blob, (byte) 1);
entity.setBlob("weight", new ByteArrayInputStream(blob));
txn.flush();
// txn.flush() can skip writing to file, manual flush is required
((EnvironmentImpl) store.getEnvironment()).flushAndSync();
}
Aggregations