public class Floats extends Object
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.
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
protected static final String CODEC_NAME
protected static final int VERSION_START
protected static final int VERSION_CURRENT
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
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.