public class IntegerField extends DocsumField
Modifier and Type | Field and Description |
---|---|
(package private) static int |
EMPTY_VALUE |
name
Constructor and Description |
---|
IntegerField(String name) |
Modifier and Type | Method and Description |
---|---|
Object |
convert(com.yahoo.data.access.Inspector value)
Convert a generic value into an object of the appropriate type
for this field.
|
private Object |
convert(int value) |
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.
|
String |
toString() |
create, create, getEmulConfig, getName, isCompressed
static final int EMPTY_VALUE
public IntegerField(String name)
private Object convert(int 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.