Package org.apache.calcite.util.format
Class FormatModels
java.lang.Object
org.apache.calcite.util.format.FormatModels
Utilities for
FormatModel
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final FormatModel
Format model for BigQuery.static final FormatModel
The format model consisting of built-in format elements.static final FormatModel
Format model for PostgreSQL. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormatElement
compositeElement
(String description, FormatElement... fmtElements) Creates a composite format element from the provided list of elements and description.static FormatModel
create
(Map<String, FormatElement> elementMap) Creates aFormatModel
that uses the provided map to identifyFormatElement
s while parsing a format string.static FormatElement
literalElement
(String literal) Creates a literal format element.
-
Field Details
-
DEFAULT
The format model consisting of built-in format elements.Due to the design of
FormatElementEnum
, it is similar to Oracle's format model. -
BIG_QUERY
Format model for BigQuery.BigQuery format element reference: BigQuery Standard SQL Format Elements.
-
POSTGRESQL
Format model for PostgreSQL.PostgreSQL format element reference: PostgreSQL Standard SQL Format Elements.
-
-
Method Details
-
create
Creates aFormatModel
that uses the provided map to identifyFormatElement
s while parsing a format string. -
literalElement
Creates a literal format element. -
compositeElement
Creates a composite format element from the provided list of elements and description.
-