List of usage examples for org.apache.lucene.codecs.blocktree BlockTreeTermsWriter validateSettings
public static void validateSettings(int minItemsInBlock, int maxItemsInBlock)
From source file:com.rocana.lucene.codec.v1.RocanaLucene50PostingsFormat.java
License:Apache License
/** Creates {@code RocanaLucene50PostingsFormat} with custom * values for {@code minBlockSize} and {@code * maxBlockSize} passed to block terms dictionary. * @see BlockTreeTermsWriter#BlockTreeTermsWriter(SegmentWriteState,PostingsWriterBase,int,int) */ public RocanaLucene50PostingsFormat(int minTermBlockSize, int maxTermBlockSize) { super(SHORT_NAME); BlockTreeTermsWriter.validateSettings(minTermBlockSize, maxTermBlockSize); this.minTermBlockSize = minTermBlockSize; this.maxTermBlockSize = maxTermBlockSize; }