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

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

Introduction

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

Prototype

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

Source Link

Document

Encode single double dimension

Usage

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

License:Apache License

@Override
public void readableToIndexed(CharSequence val, BytesRefBuilder result) {
    result.grow(Double.BYTES);/*  w w  w.j  a v  a  2s  .c o m*/
    result.setLength(Double.BYTES);
    DoublePoint.encodeDimension(Double.parseDouble(val.toString()), result.bytes(), 0);
}