Package deltix.qsrv.hf.pub.codec
Class RecordLayout
- java.lang.Object
-
- deltix.qsrv.hf.pub.codec.RecordLayout
-
- All Implemented Interfaces:
RecordClassInfo
public final class RecordLayout extends java.lang.Object implements RecordClassInfo
-
-
Field Summary
Fields Modifier and Type Field Description static int
VARIABLE_SIZE
-
Constructor Summary
Constructors Constructor Description RecordLayout(RecordClassDescriptor rcd)
RecordLayout(TypeLoader loader, RecordClassDescriptor rcd)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(TypeLoader loader)
void
bindClass(TypeLoader loader)
NonStaticFieldLayout[]
getDeclaredNonStaticFields()
RecordClassDescriptor
getDescriptor()
FieldLayout
getField(java.lang.String name)
static int
getFixedSize(DataType type)
int
getInitialOutputSize()
Return the fixed size of the record, or 0 if the size is variable.TypeLoader
getLoader()
static java.lang.Class<?>
getNativeType(DataType type)
NonStaticFieldLayout[]
getNonStaticFields()
int
getNumDoubleBaseFields()
int
getNumFloatBaseFields()
NonStaticFieldLayout[]
getPrimaryKeyFields()
StaticFieldLayout[]
getStaticFields()
java.lang.Class<?>
getTargetClass()
boolean
isBound()
boolean
isEmbedded()
static boolean
isVariableSizeEncodingCompatible(DataType type)
java.lang.Object
newInstance()
void
setEmbedded()
void
setStaticFields(java.lang.Object message)
java.lang.String
toString()
-
-
-
Field Detail
-
VARIABLE_SIZE
public static final int VARIABLE_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RecordLayout
public RecordLayout(RecordClassDescriptor rcd)
-
RecordLayout
public RecordLayout(TypeLoader loader, RecordClassDescriptor rcd)
-
-
Method Detail
-
setStaticFields
public void setStaticFields(java.lang.Object message)
-
getField
public FieldLayout getField(java.lang.String name)
- Specified by:
getField
in interfaceRecordClassInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
isBound
public boolean isBound()
-
newInstance
public java.lang.Object newInstance()
- Specified by:
newInstance
in interfaceRecordClassInfo
-
bindClass
public void bindClass(TypeLoader loader) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
bind
public void bind(TypeLoader loader) throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
-
getInitialOutputSize
public int getInitialOutputSize()
Return the fixed size of the record, or 0 if the size is variable.
-
getNonStaticFields
public NonStaticFieldLayout[] getNonStaticFields()
- Specified by:
getNonStaticFields
in interfaceRecordClassInfo
-
getDeclaredNonStaticFields
public NonStaticFieldLayout[] getDeclaredNonStaticFields()
-
getPrimaryKeyFields
public NonStaticFieldLayout[] getPrimaryKeyFields()
- Specified by:
getPrimaryKeyFields
in interfaceRecordClassInfo
-
getStaticFields
public StaticFieldLayout[] getStaticFields()
- Specified by:
getStaticFields
in interfaceRecordClassInfo
-
getNumDoubleBaseFields
public int getNumDoubleBaseFields()
-
getNumFloatBaseFields
public int getNumFloatBaseFields()
-
getDescriptor
public RecordClassDescriptor getDescriptor()
- Specified by:
getDescriptor
in interfaceRecordClassInfo
-
getTargetClass
public java.lang.Class<?> getTargetClass()
- Specified by:
getTargetClass
in interfaceRecordClassInfo
-
getLoader
public TypeLoader getLoader()
-
isEmbedded
public boolean isEmbedded()
-
setEmbedded
public void setEmbedded()
-
getFixedSize
public static int getFixedSize(DataType type)
-
isVariableSizeEncodingCompatible
public static boolean isVariableSizeEncodingCompatible(DataType type)
-
getNativeType
public static java.lang.Class<?> getNativeType(DataType type)
-
-