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

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

Introduction

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

Prototype

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

Source Link

Document

Encode single float dimension

Usage

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

License:Apache License

@Override
public void readableToIndexed(CharSequence val, BytesRefBuilder result) {
    result.grow(Float.BYTES);//from   w  w  w  .j  a  va  2s . c  om
    result.setLength(Float.BYTES);
    FloatPoint.encodeDimension(Float.parseFloat(val.toString()), result.bytes(), 0);
}