public final class TokenEncodings extends Object
TokenEncoder,
TokenDecoder| Modifier and Type | Method and Description |
|---|---|
TokenDecoder |
allocateDecoder(TokenType type,
TokenOrder... ordering)
Creates a default decoder appropriate for the given type.
|
TokenEncoder |
allocateEncoder(TokenType type,
TokenOrder... ordering)
Creates a default encoder appropriate for the given type.
|
TokenDecoder |
allocateRecordDecoder(RecordTokenType type,
ComparableTokenDecoder[] comparableDecoders,
TokenDecoder[] fieldDecoders)
Creates a record decoder from a list of field decoders for the fields in the
record.
|
TokenEncoder |
allocateRecordEncoder(RecordTokenType type,
ComparableTokenEncoder[] comparableEncoders,
TokenEncoder[] fieldEncoders)
Creates a record encoder from a list of field encoders for the fields in the
record.
|
static TokenEncodings |
getDefaultInstance()
Returns the default instance of TokenEncodings, configured according to
service lookup
for the service EncoderFactory. |
TokenEncodings |
newInstance(EncoderFactory factory)
Returns a new instance of TokenEncodings, configured with the
encoder factories of this instance, plus the given factory.
|
public static TokenEncodings getDefaultInstance()
service lookup
for the service EncoderFactory.public TokenEncodings newInstance(EncoderFactory factory)
factory - The additional factory.public TokenDecoder allocateDecoder(TokenType type, TokenOrder... ordering)
type - the type of the data to be decodedordering - ordering informationpublic TokenEncoder allocateEncoder(TokenType type, TokenOrder... ordering)
type - the type of the data to be decodedordering - ordering informationpublic TokenDecoder allocateRecordDecoder(RecordTokenType type, ComparableTokenDecoder[] comparableDecoders, TokenDecoder[] fieldDecoders)
type - the record type to decodecomparableDecoders - array of field decoders for ordering key fields in the record.fieldDecoders - array of field decoders for the non-ordering key fields in the record.public TokenEncoder allocateRecordEncoder(RecordTokenType type, ComparableTokenEncoder[] comparableEncoders, TokenEncoder[] fieldEncoders)
type - the record type to encodecomparableEncoders - array of field encoders for ordering key fields in the record.fieldEncoders - array of field encoders for the non-ordering key fields in the record.Copyright © 2020 Actian Corporation. All rights reserved.