public interface TextDataType
TextDataType
is used
in TextSchema
objects to provide the necessary information
for structured text file readers and writers to convert values
between internal (token) and external (text) representations.
A number of standard types are predefined in TextTypes
.
TextSchema
Modifier and Type | Method and Description |
---|---|
TokenParser |
createParser(TextConversionContext ctx)
Creates a new parser for converting text into token values
|
TokenFormatter |
getFormatter(TextConversionContext ctx)
Creates a new formatter for converting token values into text
|
String |
getNullIndicator(TextConversionDefaults defaults)
Gets the string used to indicate null values for the type.
|
ScalarTokenType |
getTokenType()
Gets the token type used internally for the external type.
|
String |
toPattern()
Gets a string representing the format.
|
ScalarTokenType getTokenType()
TokenParser createParser(TextConversionContext ctx)
ctx
- context containing additional information needed by parserTokenFormatter getFormatter(TextConversionContext ctx)
ctx
- context containing additional information needed by parserString toPattern()
null
if the format cannot be expressed this wayString getNullIndicator(TextConversionDefaults defaults)
defaults
- the schema defaults for the containing schemaCopyright © 2021 Actian Corporation. All rights reserved.