List of usage examples for org.apache.lucene.util LongsRef LongsRef
public LongsRef()
From source file:org.elasticsearch.index.fielddata.ordinals.OrdinalsBuilder.java
License:Apache License
public OrdinalsBuilder(long numTerms, int maxDoc, float acceptableOverheadRatio) throws IOException { this.maxDoc = maxDoc; int startBitsPerValue = 8; if (numTerms >= 0) { startBitsPerValue = PackedInts.bitsRequired(numTerms); }/*from w w w. java 2 s. c om*/ ordinals = new OrdinalsStore(maxDoc, startBitsPerValue, acceptableOverheadRatio); spare = new LongsRef(); }