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
           
protected static int VERSION_CURRENT
           
protected static int VERSION_START
           
 
Constructor Summary
Floats()
           
 
Method Summary
static DocValues getValues(Directory dir, String id, int maxDoc, IOContext context, DocValues.Type type)
           
static DocValuesConsumer getWriter(Directory dir, String id, Counter bytesUsed, IOContext context, DocValues.Type type)
           
 
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
See Also:
Constant Field Values

VERSION_START

protected static final int VERSION_START
See Also:
Constant Field Values

VERSION_CURRENT

protected static final int VERSION_CURRENT
See Also:
Constant Field Values
Constructor Detail

Floats

public Floats()
Method Detail

getWriter

public static DocValuesConsumer getWriter(Directory dir,
                                          String id,
                                          Counter bytesUsed,
                                          IOContext context,
                                          DocValues.Type type)

getValues

public static DocValues getValues(Directory dir,
                                  String id,
                                  int maxDoc,
                                  IOContext context,
                                  DocValues.Type type)
                           throws IOException
Throws:
IOException


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