Package cern.nxcals.api.ingestion
Class DataServiceEncoderImpl
java.lang.Object
cern.nxcals.api.ingestion.DataServiceEncoderImpl
- All Implemented Interfaces:
DataServiceEncoder<KeyValues,,KeyValues, String, Long> Function<cern.nxcals.api.ingestion.RecordData,byte[]>
@Deprecated
public class DataServiceEncoderImpl
extends Object
implements DataServiceEncoder<KeyValues,KeyValues,String,Long>, Function<cern.nxcals.api.ingestion.RecordData,byte[]>
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDataServiceEncoderImpl(org.apache.avro.Schema entityKeyDefs, org.apache.avro.Schema partitionKeyDefs, org.apache.avro.Schema timeKeyDefs, org.apache.avro.Schema recordVersionKeySchema, cern.nxcals.common.converters.TimeConverter timeConverter) Deprecated.Constructor that builds encoder based on supplied schemas. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]apply(cern.nxcals.api.ingestion.RecordData record) Deprecated.encodeEntityKeyValues(cern.cmw.datax.ImmutableData data) Deprecated.Provide encoding ofrecordfor entity key values.encodePartitionKeyValues(cern.cmw.datax.ImmutableData data) Deprecated.Provide encoding ofrecordfor partition key values.encodeRecordFieldDefinitions(cern.cmw.datax.ImmutableData record) Deprecated.Creates a Schema from a given CMW Data record.encodeTimeKeyValues(cern.cmw.datax.ImmutableData record) Deprecated.Provide encoding ofrecordfor time key values.
-
Constructor Details
-
DataServiceEncoderImpl
public DataServiceEncoderImpl(org.apache.avro.Schema entityKeyDefs, org.apache.avro.Schema partitionKeyDefs, org.apache.avro.Schema timeKeyDefs, org.apache.avro.Schema recordVersionKeySchema, cern.nxcals.common.converters.TimeConverter timeConverter) Deprecated.Constructor that builds encoder based on supplied schemas.- Parameters:
entityKeyDefs- Entity schema definition.partitionKeyDefs- Partition schema definition.timeKeyDefs- Time schema definition.recordVersionKeySchema- Record version schema definition.timeConverter- Timestamp converter from generic record.
-
-
Method Details
-
encodeTimeKeyValues
Deprecated.Description copied from interface:DataServiceEncoderProvide encoding ofrecordfor time key values.- Specified by:
encodeTimeKeyValuesin interfaceDataServiceEncoder<KeyValues,KeyValues, String, Long> - Parameters:
record- Data to encode.- Returns:
- an internal representation of the time key values.
-
encodeEntityKeyValues
Deprecated.Description copied from interface:DataServiceEncoderProvide encoding ofrecordfor entity key values.- Specified by:
encodeEntityKeyValuesin interfaceDataServiceEncoder<KeyValues,KeyValues, String, Long> - Parameters:
data- Data to encode.- Returns:
- an internal representation of the entity key values
-
encodePartitionKeyValues
Deprecated.Description copied from interface:DataServiceEncoderProvide encoding ofrecordfor partition key values.- Specified by:
encodePartitionKeyValuesin interfaceDataServiceEncoder<KeyValues,KeyValues, String, Long> - Parameters:
data- Data to encode.- Returns:
- an internal representation of the partition key values
-
encodeRecordFieldDefinitions
Deprecated.Creates a Schema from a given CMW Data record.- Specified by:
encodeRecordFieldDefinitionsin interfaceDataServiceEncoder<KeyValues,KeyValues, String, Long> - Parameters:
record- Data to encode.- Returns:
- an internal representation of the record definition (fields + types), aka schema.
-
apply
public byte[] apply(cern.nxcals.api.ingestion.RecordData record) Deprecated.
-
DataEncoderImpl