Package org.yamcs.yarch
Class ColumnSerializerFactory
java.lang.Object
org.yamcs.yarch.ColumnSerializerFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ColumnSerializer<T>
returns a column serializer for basic typesstatic <T> ColumnSerializer<T>
returns a column serializer for basic typesstatic <T> ColumnSerializer<T>
getColumnSerializer
(TableDefinition tblDef, TableColumnDefinition cd) static <T> ColumnSerializer<T>
getColumnSerializer
(TableDefinition tblDef, TableColumnDefinition cd, DataType type) static ColumnSerializer<?>
Returns the V2 serializers with the enumerations serialzied as strings (so they don't need a decoding table on the other end)static ColumnSerializer<?>
getColumnSerializerForReplication
(DataType type, String colName) static <T extends com.google.protobuf.MessageLite>
ColumnSerializer<T>static <T extends com.google.protobuf.MessageLite>
ColumnSerializer<T>getProtobufSerializer
(ProtobufDataType dtype, String colName)
-
Constructor Details
-
ColumnSerializerFactory
public ColumnSerializerFactory()
-
-
Method Details
-
getColumnSerializer
public static <T> ColumnSerializer<T> getColumnSerializer(TableDefinition tblDef, TableColumnDefinition cd) -
getColumnSerializer
public static <T> ColumnSerializer<T> getColumnSerializer(TableDefinition tblDef, TableColumnDefinition cd, DataType type) -
getColumnSerializerForReplication
Returns the V2 serializers with the enumerations serialzied as strings (so they don't need a decoding table on the other end)- Parameters:
cd
-- Returns:
-
getColumnSerializerForReplication
-
getBasicColumnSerializerV3
returns a column serializer for basic types- Parameters:
type
-- Returns:
-
getBasicColumnSerializerV2
returns a column serializer for basic types- Parameters:
type
-- Returns:
-
getProtobufSerializer
public static <T extends com.google.protobuf.MessageLite> ColumnSerializer<T> getProtobufSerializer(ColumnDefinition cd) -
getProtobufSerializer
public static <T extends com.google.protobuf.MessageLite> ColumnSerializer<T> getProtobufSerializer(ProtobufDataType dtype, String colName)
-