Package deltix.qsrv.hf.codec
Class CodecUtils
- java.lang.Object
-
- deltix.qsrv.hf.codec.CodecUtils
-
public abstract class CodecUtils extends java.lang.Object
User: BazylevD Date: Dec 5, 2008 Time: 9:31:59 PM
-
-
Constructor Summary
Constructors Constructor Description CodecUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compareNulls(boolean isNull1, boolean isNull2)
static RecordLayout
createFieldLayout(java.lang.String fieldName, RecordLayout layout)
static RecordLayout
createFieldLayout(java.lang.String fieldName, RecordLayout layout, int index)
static PolyBoundEncoderImpl
createPolyEncoder(java.lang.Class<?>[] encoderClasses, java.lang.String fieldName, RecordLayout layout)
static <V> V
get(deltix.util.collections.generated.IntegerToObjectHashMap<V> map, int key)
static int
getBitmaskValue(deltix.util.collections.CharSequenceToIntegerMap symbolToValueMap, java.lang.CharSequence value)
static int[]
getEnumMap(java.lang.Class<?> enumClass, EnumClassDescriptor ecd)
static java.lang.Object[]
getEnumValues(java.lang.Class<?> enumClass, EnumClassDescriptor ecd)
static long
getLimit4BaseClass(boolean isUpper, java.lang.Class<?> clazz)
static java.lang.Number
getMaxLimit(DataType dataType, boolean isBound, java.lang.Class<?> valueClazz)
static java.lang.Number
getMinLimit(DataType dataType, boolean isBound, java.lang.Class<?> valueClazz)
static java.lang.Class<?>
getPrimitiveClass(java.lang.String className)
static java.lang.String
getString(java.lang.CharSequence value)
static java.lang.String
getTypeBySize(int size)
static int
limitMDI(int size, deltix.util.memory.MemoryDataInput in)
static java.lang.String
primitiveTypeBySize(int size)
static int
readPackedUnsignedInt(deltix.util.memory.MemoryDataInput in)
static long
readPackedUnsignedLong(deltix.util.memory.MemoryDataInput in)
static void
setString(java.lang.CharSequence value, deltix.util.memory.MemoryDataOutput out, boolean inlineEncoding)
static void
storeFieldSize(int pos, deltix.util.memory.MemoryDataOutput out)
static void
validateBoundClass(RecordClassInfo layout)
static void
writePackedUnsignedInt(int v, deltix.util.memory.MemoryDataOutput out)
static void
writePackedUnsignedLong(long v, deltix.util.memory.MemoryDataOutput out)
-
-
-
Method Detail
-
readPackedUnsignedInt
public static int readPackedUnsignedInt(deltix.util.memory.MemoryDataInput in)
-
writePackedUnsignedInt
public static void writePackedUnsignedInt(int v, deltix.util.memory.MemoryDataOutput out)
-
readPackedUnsignedLong
public static long readPackedUnsignedLong(deltix.util.memory.MemoryDataInput in)
-
writePackedUnsignedLong
public static void writePackedUnsignedLong(long v, deltix.util.memory.MemoryDataOutput out)
-
getString
public static java.lang.String getString(java.lang.CharSequence value)
-
setString
public static void setString(java.lang.CharSequence value, deltix.util.memory.MemoryDataOutput out, boolean inlineEncoding)
-
getBitmaskValue
public static int getBitmaskValue(deltix.util.collections.CharSequenceToIntegerMap symbolToValueMap, java.lang.CharSequence value)
-
getEnumValues
public static java.lang.Object[] getEnumValues(java.lang.Class<?> enumClass, EnumClassDescriptor ecd)
-
getEnumMap
public static int[] getEnumMap(java.lang.Class<?> enumClass, EnumClassDescriptor ecd)
-
compareNulls
public static int compareNulls(boolean isNull1, boolean isNull2)
-
getTypeBySize
public static java.lang.String getTypeBySize(int size)
-
primitiveTypeBySize
public static java.lang.String primitiveTypeBySize(int size)
-
getPrimitiveClass
public static java.lang.Class<?> getPrimitiveClass(java.lang.String className)
-
getMinLimit
public static java.lang.Number getMinLimit(DataType dataType, boolean isBound, java.lang.Class<?> valueClazz)
-
getMaxLimit
public static java.lang.Number getMaxLimit(DataType dataType, boolean isBound, java.lang.Class<?> valueClazz)
-
getLimit4BaseClass
public static long getLimit4BaseClass(boolean isUpper, java.lang.Class<?> clazz)
-
storeFieldSize
public static void storeFieldSize(int pos, deltix.util.memory.MemoryDataOutput out)
-
limitMDI
public static int limitMDI(int size, deltix.util.memory.MemoryDataInput in)
-
createFieldLayout
public static RecordLayout createFieldLayout(java.lang.String fieldName, RecordLayout layout)
-
createFieldLayout
public static RecordLayout createFieldLayout(java.lang.String fieldName, RecordLayout layout, int index)
-
createPolyEncoder
public static PolyBoundEncoderImpl createPolyEncoder(java.lang.Class<?>[] encoderClasses, java.lang.String fieldName, RecordLayout layout)
-
get
public static <V> V get(deltix.util.collections.generated.IntegerToObjectHashMap<V> map, int key) throws deltix.util.lang.NotFoundException
- Throws:
deltix.util.lang.NotFoundException
-
validateBoundClass
public static void validateBoundClass(RecordClassInfo layout)
-
-