Example usage for org.apache.lucene.document IntPoint encodeDimension

List of usage examples for org.apache.lucene.document IntPoint encodeDimension

Introduction

In this page you can find the example usage for org.apache.lucene.document IntPoint encodeDimension.

Prototype

public static void encodeDimension(int value, byte dest[], int offset) 

Source Link

Document

Encode single integer dimension

Usage

From source file:org.apache.solr.schema.IntPointField.java

License:Apache License

@Override
public void readableToIndexed(CharSequence val, BytesRefBuilder result) {
    result.grow(Integer.BYTES);/*from  w w w .  j  a v  a 2  s.co  m*/
    result.setLength(Integer.BYTES);
    IntPoint.encodeDimension(Integer.parseInt(val.toString()), result.bytes(), 0);
}