Package org.apache.calcite.util.format
Interface FormatModel
public interface FormatModel
Describes the format strings used by a formatting function such as
FORMAT_TIMESTAMP
or CAST(string AS DATE FORMAT formatString)
.
Can parse a format string to a list of format elements.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the map used to create theFormatModel
instance.Parses a format string using element identifiers supplied byformat
.parseNoCache
(String format) Asparse(java.lang.String)
, but does not cache.
-
Method Details
-
getElementMap
Map<String,FormatElement> getElementMap()Returns the map used to create theFormatModel
instance. -
parse
Parses a format string using element identifiers supplied byformat
. -
parseNoCache
Asparse(java.lang.String)
, but does not cache.
-