Example usage for org.apache.lucene.util LongsRef LongsRef

List of usage examples for org.apache.lucene.util LongsRef LongsRef

Introduction

In this page you can find the example usage for org.apache.lucene.util LongsRef LongsRef.

Prototype

public LongsRef() 

Source Link

Document

Create a LongsRef with #EMPTY_LONGS

Usage

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