Example usage for org.apache.lucene.codecs.blocktree BlockTreeTermsWriter validateSettings

List of usage examples for org.apache.lucene.codecs.blocktree BlockTreeTermsWriter validateSettings

Introduction

In this page you can find the example usage for org.apache.lucene.codecs.blocktree BlockTreeTermsWriter validateSettings.

Prototype

public static void validateSettings(int minItemsInBlock, int maxItemsInBlock) 

Source Link

Document

Throws IllegalArgumentException if any of these settings is invalid.

Usage

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;
}