Package org.apache.calcite.util.format
Class FormatModels
java.lang.Object
org.apache.calcite.util.format.FormatModels
Utilities for
FormatModel.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FormatModelFormat model for BigQuery.static final FormatModelThe format model consisting of built-in format elements.static final FormatModelFormat model for PostgreSQL. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormatElementcompositeElement(String description, FormatElement... fmtElements) Creates a composite format element from the provided list of elements and description.static FormatModelcreate(Map<String, FormatElement> elementMap) Creates aFormatModelthat uses the provided map to identifyFormatElements while parsing a format string.static FormatElementliteralElement(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 aFormatModelthat uses the provided map to identifyFormatElements 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.
-