public class JSONField extends DocsumField implements VariableLengthField
Modifier and Type | Class and Description |
---|---|
private static class |
JSONField.ArrConv |
private static class |
JSONField.CompatibilityConverter |
private static class |
JSONField.WsConv1 |
private static class |
JSONField.WsConv2 |
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.
|
(package private) static com.yahoo.data.access.Inspector |
convertTop(com.yahoo.data.access.Inspector 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.
|
boolean |
isCompressed(ByteBuffer b) |
int |
sizeOfLength()
Returns the size of the length preceeding the data of this field, in bytes
|
String |
toString() |
create, create, getEmulConfig, getName
public JSONField(String name)
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 boolean isCompressed(ByteBuffer b)
isCompressed
in class DocsumField
public int sizeOfLength()
VariableLengthField
sizeOfLength
in interface VariableLengthField
static com.yahoo.data.access.Inspector convertTop(com.yahoo.data.access.Inspector value)
public Object convert(com.yahoo.data.access.Inspector value)
DocsumField
convert
in class DocsumField
Copyright © 2018. All rights reserved.