public class XMLField extends DocsumField implements VariableLengthField
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(String 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 XMLField(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
public Object convert(com.yahoo.data.access.Inspector value)
DocsumField
convert
in class DocsumField
Copyright © 2017. All rights reserved.