Class DoubleStoredField

  • All Implemented Interfaces:
    org.apache.lucene.index.IndexableField

    public class DoubleStoredField
    extends org.apache.lucene.document.StoredField
    Cerebro's class to store a double number into Lucene's index.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.lucene.document.Field

        org.apache.lucene.document.Field.Store
    • Field Summary

      • Fields inherited from class org.apache.lucene.document.StoredField

        TYPE
      • Fields inherited from class org.apache.lucene.document.Field

        fieldsData, name, tokenStream, type
    • Constructor Summary

      Constructors 
      Constructor Description
      DoubleStoredField​(double d)  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double bytesToDouble​(byte[] data)  
      static byte[] doubleToBytes​(double d)  
      • Methods inherited from class org.apache.lucene.document.Field

        binaryValue, fieldType, getCharSequenceValue, name, numericValue, readerValue, setBytesValue, setBytesValue, setByteValue, setDoubleValue, setFloatValue, setIntValue, setLongValue, setReaderValue, setShortValue, setStringValue, setTokenStream, stringValue, tokenStream, tokenStreamValue, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DoubleStoredField

        public DoubleStoredField​(double d)
    • Method Detail

      • doubleToBytes

        public static byte[] doubleToBytes​(double d)
      • bytesToDouble

        public static double bytesToDouble​(byte[] data)