static private SnowflakeDateTimeFormat specializedFormatter ( Map < String , Object > parameters , String id , String param , String defaultFormat ) { String sqlFormat = SnowflakeDateTimeFormat . effectiveSpecializedTimestampFormat ( ( String ) effectiveParamValue ( parameters , param ) , defaultFormat ) ; SnowflakeDateTimeFormat formatter = new SnowflakeDateTimeFormat ( sqlFormat ) ; if ( logger . isDebugEnabled ( ) ) { logger . debug ( "sql {} format: {}, java {} format: {}" , id , sqlFormat , id , formatter . toSimpleDateTimePattern ( ) ) ; } return formatter ; }
Helper function building a formatter for a specialized timestamp type . Note that it will be based on either the param value if set or the default format provided .