org.apache.lucene.codecs.lucene40.values
Class Floats

java.lang.Object
  extended by org.apache.lucene.codecs.lucene40.values.Floats

public class Floats
extends Object

Exposes Writer and reader (DocValues.Source) for 32 bit and 64 bit floating point values.

Current implementations store either 4 byte or 8 byte floating points with full precision without any compression.

WARNING: This API is experimental and might change in incompatible ways in the next release.

Field Summary
protected static String CODEC_NAME
          Codec name, written in the header.
protected static int VERSION_CURRENT
          Current version.
protected static int VERSION_START
          Initial version.
 
Method Summary
static DocValues getValues(Directory dir, String id, int maxDoc, IOContext context, DocValues.Type type)
          Creates and returns a DocValues to read previously written float values.
static DocValuesConsumer getWriter(Directory dir, String id, Counter bytesUsed, IOContext context, DocValues.Type type)
          Creates and returns a DocValuesConsumer to write float values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODEC_NAME

protected static final String CODEC_NAME
Codec name, written in the header.

See Also:
Constant Field Values

VERSION_START

protected static final int VERSION_START
Initial version.

See Also:
Constant Field Values

VERSION_CURRENT

protected static final int VERSION_CURRENT
Current version.

See Also:
Constant Field Values
Method Detail

getWriter

public static DocValuesConsumer getWriter(Directory dir,
                                          String id,
                                          Counter bytesUsed,
                                          IOContext context,
                                          DocValues.Type type)
Creates and returns a DocValuesConsumer to write float values.


getValues

public static DocValues getValues(Directory dir,
                                  String id,
                                  int maxDoc,
                                  IOContext context,
                                  DocValues.Type type)
                           throws IOException
Creates and returns a DocValues to read previously written float values.

Throws:
IOException


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.