Java Code Examples for org.apache.lucene.util.packed.PackedInts#DEFAULT
The following examples show how to use
org.apache.lucene.util.packed.PackedInts#DEFAULT .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DocValuesFieldUpdates.java From lucene-solr with Apache License 2.0 | 5 votes |
protected DocValuesFieldUpdates(int maxDoc, long delGen, String field, DocValuesType type) { this.maxDoc = maxDoc; this.delGen = delGen; this.field = field; if (type == null) { throw new NullPointerException("DocValuesType must not be null"); } this.type = type; bitsPerValue = PackedInts.bitsRequired(maxDoc - 1) + SHIFT; docs = new PagedMutable(1, PAGE_SIZE, bitsPerValue, PackedInts.DEFAULT); }
Example 2
Source File: NumericDocValuesFieldUpdates.java From lucene-solr with Apache License 2.0 | 4 votes |
NumericDocValuesFieldUpdates(long delGen, String field, int maxDoc) { super(maxDoc, delGen, field, DocValuesType.NUMERIC); // we don't know the min/max range so we use the growable writer here to adjust as we go. values = new PagedGrowableWriter(1, PAGE_SIZE, 1, PackedInts.DEFAULT); minValue = 0; }