public interface DseFunctionMetadata extends FunctionMetadata
It adds support for the DSE-specific DETERMINISTIC
and MONOTONIC
keywords.
Modifier and Type | Method and Description |
---|---|
default String |
describe(boolean pretty) |
List<CqlIdentifier> |
getMonotonicArgumentNames()
Returns a list of argument names that are monotonic.
|
boolean |
isDeterministic()
Indicates if this function is deterministic.
|
boolean |
isMonotonic()
Indicates whether or not this function is monotonic on all of its arguments.
|
describeWithChildren, getBody, getKeyspace, getLanguage, getParameterNames, getReturnType, getSignature, isCalledOnNullInput
boolean isDeterministic()
NOTE: For versions of DSE older than 6.0.0, this method will always return false, regardless of the actual function characteristics.
boolean isMonotonic()
A function can be either:
true
, and
getMonotonicArgumentNames()
returns all the arguments;
false
, and getMonotonicArgumentNames()
returns a singleton list;
false
and getMonotonicArgumentNames()
returns an empty list.
Monotonicity is required to use the function in a GROUP BY clause.
NOTE: For versions of DSE older than 6.0.0, this method will always return false, regardless of the actual function characteristics.
@NonNull List<CqlIdentifier> getMonotonicArgumentNames()
See isMonotonic()
for explanations on monotonicity, and the possible values
returned by this method.
NOTE: For versions of DSE older than 6.0.0, this method will always return an empty list, regardless of the actual function characteristics.
@NonNull default String describe(boolean pretty)
describe
in interface Describable
describe
in interface FunctionMetadata
Copyright © 2017–2019. All rights reserved.