public class FloatField extends DocsumField
Modifier and Type | Field and Description |
---|---|
(package private) static double |
EMPTY_VALUE |
name
Constructor and Description |
---|
FloatField(String name) |
Modifier and Type | Method and Description |
---|---|
private Object |
convert(float value) |
Object |
convert(com.yahoo.data.access.Inspector value)
Convert a generic value into an object of the appropriate type
for this field.
|
Object |
decode(ByteBuffer b)
Decode the field at the current buffer position and simply return the
value.
|
Object |
decode(ByteBuffer b,
FastHit hit)
Decode the field at the current buffer position into the fast hit.
|
int |
getLength(ByteBuffer b)
Get the number of bytes this field occupies in the given buffer
AND SET(!) the position to the first byte after this field.
|
create, create, getEmulConfig, getName, isCompressed
static final double EMPTY_VALUE
public FloatField(String name)
private Object convert(float value)
public Object decode(ByteBuffer b)
DocsumField
decode
in class DocsumField
public Object decode(ByteBuffer b, FastHit hit)
DocsumField
decode
in class DocsumField
public int getLength(ByteBuffer b)
DocsumField
getLength
in class DocsumField
public Object convert(com.yahoo.data.access.Inspector value)
DocsumField
convert
in class DocsumField
Copyright © 2018. All rights reserved.