public class LegacyInternalDataAdapterWrapper<T> extends Object implements InternalDataAdapter<T>
Constructor and Description |
---|
LegacyInternalDataAdapterWrapper() |
LegacyInternalDataAdapterWrapper(DataTypeAdapter<T> adapter,
short adapterId) |
Modifier and Type | Method and Description |
---|---|
T |
decode(IndexedAdapterPersistenceEncoding data,
AdapterToIndexMapping indexMapping,
Index index) |
AdapterPersistenceEncoding |
encode(T entry,
AdapterToIndexMapping indexMapping,
Index index) |
void |
fromBinary(byte[] bytes)
Convert a stream of binary bytes to fields and data within an object.
|
DataTypeAdapter<T> |
getAdapter() |
short |
getAdapterId() |
Class<T> |
getDataClass()
Return the class that represents the data stored by this adapter.
|
byte[] |
getDataId(T entry)
Get a data ID for the entry.
|
FieldDescriptor<?> |
getFieldDescriptor(String fieldName) |
FieldDescriptor<?>[] |
getFieldDescriptors() |
String |
getFieldNameForPosition(CommonIndexModel model,
int position) |
Object |
getFieldValue(T entry,
String fieldName)
Returns the value of the field with the given name from the entry.
|
int |
getPositionOfOrderedField(CommonIndexModel model,
String fieldName) |
String |
getTypeName()
Return the data adapter's type name.
|
InternalDataAdapter<T> |
getUpdatedAdapter() |
VisibilityHandler |
getVisibilityHandler() |
boolean |
isCommonIndexField(AdapterToIndexMapping indexMapping,
String fieldName) |
RowBuilder<T> |
newRowBuilder(FieldDescriptor<?>[] outputFieldDescriptors) |
byte[] |
toBinary()
Convert fields and data within an object to binary form for transmission or storage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asInternalAdapter, asInternalAdapter, describe, getReader, getWriter
public LegacyInternalDataAdapterWrapper()
public LegacyInternalDataAdapterWrapper(DataTypeAdapter<T> adapter, short adapterId)
public InternalDataAdapter<T> getUpdatedAdapter()
public byte[] toBinary()
Persistable
toBinary
in interface Persistable
public void fromBinary(byte[] bytes)
Persistable
fromBinary
in interface Persistable
public VisibilityHandler getVisibilityHandler()
getVisibilityHandler
in interface InternalDataAdapter<T>
public short getAdapterId()
getAdapterId
in interface InternalDataAdapter<T>
public String getTypeName()
DataTypeAdapter
getTypeName
in interface DataTypeAdapter<T>
public byte[] getDataId(T entry)
DataTypeAdapter
getDataId
in interface DataTypeAdapter<T>
entry
- the entrypublic Object getFieldValue(T entry, String fieldName)
DataTypeAdapter
getFieldValue
in interface DataTypeAdapter<T>
entry
- the entryfieldName
- the field namepublic Class<T> getDataClass()
DataTypeAdapter
getDataClass
in interface DataTypeAdapter<T>
public RowBuilder<T> newRowBuilder(FieldDescriptor<?>[] outputFieldDescriptors)
newRowBuilder
in interface DataTypeAdapter<T>
public FieldDescriptor<?>[] getFieldDescriptors()
getFieldDescriptors
in interface DataTypeAdapter<T>
public FieldDescriptor<?> getFieldDescriptor(String fieldName)
getFieldDescriptor
in interface DataTypeAdapter<T>
public DataTypeAdapter<T> getAdapter()
getAdapter
in interface InternalDataAdapter<T>
public int getPositionOfOrderedField(CommonIndexModel model, String fieldName)
getPositionOfOrderedField
in interface InternalDataAdapter<T>
public String getFieldNameForPosition(CommonIndexModel model, int position)
getFieldNameForPosition
in interface InternalDataAdapter<T>
public AdapterPersistenceEncoding encode(T entry, AdapterToIndexMapping indexMapping, Index index)
encode
in interface InternalDataAdapter<T>
public T decode(IndexedAdapterPersistenceEncoding data, AdapterToIndexMapping indexMapping, Index index)
decode
in interface InternalDataAdapter<T>
public boolean isCommonIndexField(AdapterToIndexMapping indexMapping, String fieldName)
isCommonIndexField
in interface InternalDataAdapter<T>
Copyright © 2013–2022. All rights reserved.