Package org.apache.calcite.util.format
Class FormatModels
java.lang.Object
org.apache.calcite.util.format.FormatModels
Utilities for 
FormatModel.- 
Field SummaryFieldsModifier 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 SummaryModifier 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- 
DEFAULTThe format model consisting of built-in format elements.Due to the design of FormatElementEnum, it is similar to Oracle's format model.
- 
BIG_QUERYFormat model for BigQuery.BigQuery format element reference: BigQuery Standard SQL Format Elements. 
- 
POSTGRESQLFormat model for PostgreSQL.PostgreSQL format element reference: PostgreSQL Standard SQL Format Elements. 
 
- 
- 
Method Details- 
createCreates aFormatModelthat uses the provided map to identifyFormatElements while parsing a format string.
- 
literalElementCreates a literal format element.
- 
compositeElementCreates a composite format element from the provided list of elements and description.
 
-