/** * Returns a new instance of {@link net.openhft.chronicle.ExcerptAppender} which can be used for sequential writes * into this Chronicle. * * @return new {@link net.openhft.chronicle.ExcerptAppender} for this Chronicle * @throws IOException if an I/O error occurs */ @NotNull @Override public ExcerptAppender createAppender() throws IOException { final ExcerptAppender appender = new IndexedExcerptAppender(); return !config.useCheckedExcerpt() ? appender : new CheckedExcerpt(appender); }
/** * Returns a new instance of {@link net.openhft.chronicle.Excerpt} which can be used for random * access to the data stored in this Chronicle. * * @return new {@link net.openhft.chronicle.Excerpt} for this Chronicle * @throws IOException if an I/O error occurs */ @NotNull @Override public Excerpt createExcerpt() throws IOException { final Excerpt excerpt = new IndexedExcerpt(); return !builder.useCheckedExcerpt() ? excerpt : new CheckedExcerpt(excerpt); }
/** * Returns a new instance of {@link net.openhft.chronicle.ExcerptAppender} which can be used for * sequential writes into this Chronicle. * * @return new {@link net.openhft.chronicle.ExcerptAppender} for this Chronicle * @throws IOException if an I/O error occurs */ @NotNull @Override public ExcerptAppender createAppender() throws IOException { final ExcerptAppender appender = new IndexedExcerptAppender(); return !builder.useCheckedExcerpt() ? appender : new CheckedExcerpt(appender); }
/** * Returns a new instance of {@link net.openhft.chronicle.Excerpt} which can be used for random access to the data * stored in this Chronicle. * * @return new {@link net.openhft.chronicle.Excerpt} for this Chronicle * @throws IOException if an I/O error occurs */ @NotNull @Override public Excerpt createExcerpt() throws IOException { final Excerpt excerpt = new IndexedExcerpt(); return !config.useCheckedExcerpt() ? excerpt : new CheckedExcerpt(excerpt); }