Class DefaultSegmentWriterBuilder


  • public final class DefaultSegmentWriterBuilder
    extends Object
    Builder for building DefaultSegmentWriter instances. The returned instances are thread safe if withWriterPool() was specified and not thread sage if withoutWriterPool() was specified (default).

    Default: calling one of the build() methods without previously calling one of the with...() methods returns a SegmentWriter as would the following chain of calls:

         segmentWriterBuilder("name")
            .with(LATEST_VERSION)
            .withGeneration(0)
            .withoutWriterPool()
            .with(new WriterCacheManager.Default())
            .build(store);