|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.codecs.lucene40.values.Floats
public class Floats
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.
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 |
---|
protected static final String CODEC_NAME
protected static final int VERSION_START
protected static final int VERSION_CURRENT
Method Detail |
---|
public static DocValuesConsumer getWriter(Directory dir, String id, Counter bytesUsed, IOContext context, DocValues.Type type)
DocValuesConsumer
to
write float values.
public static DocValues getValues(Directory dir, String id, int maxDoc, IOContext context, DocValues.Type type) throws IOException
DocValues
to
read previously written float values.
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |