Class NumberFormatPattern
java.lang.Object
org.apache.calcite.util.format.postgresql.format.FormatPattern
org.apache.calcite.util.format.postgresql.format.NumberFormatPattern
A date/time format component that will parse a sequence of digits into a value
(such as "DD").
-
Field Summary
Fields inherited from class org.apache.calcite.util.format.postgresql.format.FormatPattern
pattern
-
Constructor Summary
ConstructorDescriptionNumberFormatPattern
(String pattern, ChronoUnitEnum chronoUnit, Function<ZonedDateTime, Integer> dateTimeToIntConverter, int minCharacters, int maxCharacters, int minValue, int maxValue) NumberFormatPattern
(String pattern, ChronoUnitEnum chronoUnit, Function<ZonedDateTime, Integer> dateTimeToIntConverter, Function<Integer, Integer> valueAdjuster, int minCharacters, int maxCharacters, int minValue, int maxValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected CompiledPattern
buildCompiledPattern
(Set<PatternModifier> modifiers) Creates a new instance of the compiled version of this date/time component.Methods inherited from class org.apache.calcite.util.format.postgresql.format.FormatPattern
compilePattern, getPattern
-
Constructor Details
-
NumberFormatPattern
public NumberFormatPattern(String pattern, ChronoUnitEnum chronoUnit, Function<ZonedDateTime, Integer> dateTimeToIntConverter, Function<Integer, Integer> valueAdjuster, int minCharacters, int maxCharacters, int minValue, int maxValue) -
NumberFormatPattern
public NumberFormatPattern(String pattern, ChronoUnitEnum chronoUnit, Function<ZonedDateTime, Integer> dateTimeToIntConverter, int minCharacters, int maxCharacters, int minValue, int maxValue)
-
-
Method Details
-
buildCompiledPattern
Description copied from class:FormatPattern
Creates a new instance of the compiled version of this date/time component.- Specified by:
buildCompiledPattern
in classFormatPattern
- Parameters:
modifiers
- the set of flags that were parsed- Returns:
- a new instance of the compiled version of this date/time component
-