public abstract class DocsumField extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
DocsumField.FieldFactory |
Modifier and Type | Field and Description |
---|---|
private LegacyEmulationConfig |
emulConfig |
private static DocsumField.FieldFactory |
fieldFactory |
private static Logger |
log |
protected String |
name |
Modifier | Constructor and Description |
---|---|
protected |
DocsumField(String name) |
Modifier and Type | Method and Description |
---|---|
abstract 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 DocsumField |
create(String name,
String typename) |
static DocsumField |
create(String name,
String typename,
LegacyEmulationConfig emulConfig) |
abstract Object |
decode(ByteBuffer b)
Decode the field at the current buffer position and simply return the
value.
|
abstract Object |
decode(ByteBuffer b,
FastHit hit)
Decode the field at the current buffer position into the fast hit.
|
(package private) LegacyEmulationConfig |
getEmulConfig() |
abstract 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 |
getName() |
boolean |
isCompressed(ByteBuffer b) |
private static final Logger log
private static DocsumField.FieldFactory fieldFactory
private LegacyEmulationConfig emulConfig
protected String name
protected DocsumField(String name)
final LegacyEmulationConfig getEmulConfig()
static DocsumField create(String name, String typename)
public static DocsumField create(String name, String typename, LegacyEmulationConfig emulConfig)
public String getName()
public boolean isCompressed(ByteBuffer b)
public abstract Object decode(ByteBuffer b, FastHit hit)
public abstract Object decode(ByteBuffer b)
public abstract int getLength(ByteBuffer b)
public abstract Object convert(com.yahoo.data.access.Inspector value)
Copyright © 2018. All rights reserved.