Interface DataServiceEncoder<K,​P,​S,​T>

  • Type Parameters:
    K - Entity key values encoding type.
    P - Partition key values type.
    S - Record field definitions type.
    T - Time key values type.
    All Known Implementing Classes:
    DataServiceEncoderImpl

    @Deprecated
    public interface DataServiceEncoder<K,​P,​S,​T>
    Deprecated.
    - please use DataEncoder The role of this component is to encode the @see Data record meta information into the internal service representation. The implementation of this interface is required to know the definition of the system (entity & partition key information).
    • Method Detail

      • encodeEntityKeyValues

        K encodeEntityKeyValues​(cern.cmw.datax.ImmutableData record)
        Deprecated.
        Provide encoding of record for entity key values.
        Parameters:
        record - Data to encode.
        Returns:
        an internal representation of the entity key values
      • encodePartitionKeyValues

        P encodePartitionKeyValues​(cern.cmw.datax.ImmutableData record)
        Deprecated.
        Provide encoding of record for partition key values.
        Parameters:
        record - Data to encode.
        Returns:
        an internal representation of the partition key values
      • encodeRecordFieldDefinitions

        S encodeRecordFieldDefinitions​(cern.cmw.datax.ImmutableData record)
        Deprecated.
        Provide encoding of record for record field definitions.
        Parameters:
        record - Data to encode.
        Returns:
        an internal representation of the record definition (fields + types), aka schema.
      • encodeTimeKeyValues

        T encodeTimeKeyValues​(cern.cmw.datax.ImmutableData record)
        Deprecated.
        Provide encoding of record for time key values.
        Parameters:
        record - Data to encode.
        Returns:
        an internal representation of the time key values.