Deprecated
as a consequence of FunctionRenderer being deprecated. See corresponding docs for further information.
trunc(datetime, temporal_unit) function that leverages
formatting the datetime to string and back to truncate it
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected <T> SelfRenderingSqmFunction | generateSqmFunctionExpression(List<? extends SqmTypedNode<?>>
the arguments of the function invocation arguments, ReturnableType<T> the function return type as inferred from its usage impliedResultType, QueryEngine queryEngine)Implements abstract org. |
| public void | render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker)
Implements org. |
| sqmFormat | back to summary |
|---|---|
| private final SqmFormat sqmFormat | |
| toDateFunction | back to summary |
|---|---|
| protected final String toDateFunction | |
| DateTruncEmulation | back to summary |
|---|---|
| protected DateTruncEmulation(String toDateFunction, TypeConfiguration typeConfiguration) | |
| generateSqmFunctionExpression | back to summary |
|---|---|
| protected <T> SelfRenderingSqmFunction Implements abstract org. Doc from org. Return an SQM node or subtree representing an invocation of this function with the given arguments. This method may be overridden in the case of function descriptors that wish to customize creation of the node.
| |
| render | back to summary |
|---|---|
| public void render(SqlAppender sqlAppender, List<? extends SqlAstNode> sqlAstArguments, ReturnableType<?> returnType, SqlAstTranslator<?> walker) Implements org.
| |