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 |
protected static int |
VERSION_CURRENT |
protected static int |
VERSION_START |
| Constructor and Description |
|---|
Floats() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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)
public static DocValues getValues(Directory dir, String id, int maxDoc, IOContext context, DocValues.Type type) throws IOException
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.