@Immutable public class DefaultDseFunctionMetadata extends com.datastax.oss.driver.internal.core.metadata.schema.DefaultFunctionMetadata implements DseFunctionMetadata
Constructor and Description |
---|
DefaultDseFunctionMetadata(CqlIdentifier keyspace,
FunctionSignature signature,
List<CqlIdentifier> parameterNames,
String body,
boolean calledOnNullInput,
String language,
DataType returnType,
boolean deterministic,
boolean monotonic,
List<CqlIdentifier> monotonicArgumentNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
List<CqlIdentifier> |
getMonotonicArgumentNames()
Returns a list of argument names that are monotonic.
|
int |
hashCode() |
boolean |
isDeterministic()
Indicates if this function is deterministic.
|
boolean |
isMonotonic()
Indicates whether or not this function is monotonic on all of its arguments.
|
String |
toString() |
getBody, getKeyspace, getLanguage, getParameterNames, getReturnType, getSignature, isCalledOnNullInput
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
describe
describeWithChildren, getBody, getKeyspace, getLanguage, getParameterNames, getReturnType, getSignature, isCalledOnNullInput
public DefaultDseFunctionMetadata(@NonNull CqlIdentifier keyspace, @NonNull FunctionSignature signature, @NonNull List<CqlIdentifier> parameterNames, @NonNull String body, boolean calledOnNullInput, @NonNull String language, @NonNull DataType returnType, boolean deterministic, boolean monotonic, @NonNull List<CqlIdentifier> monotonicArgumentNames)
public boolean isDeterministic()
DseFunctionMetadata
NOTE: For versions of DSE older than 6.0.0, this method will always return false, regardless of the actual function characteristics.
isDeterministic
in interface DseFunctionMetadata
public boolean isMonotonic()
DseFunctionMetadata
A function can be either:
true
, and
DseFunctionMetadata.getMonotonicArgumentNames()
returns all the arguments;
false
, and DseFunctionMetadata.getMonotonicArgumentNames()
returns a singleton list;
false
and DseFunctionMetadata.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.
isMonotonic
in interface DseFunctionMetadata
@NonNull public List<CqlIdentifier> getMonotonicArgumentNames()
DseFunctionMetadata
See DseFunctionMetadata.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.
getMonotonicArgumentNames
in interface DseFunctionMetadata
public boolean equals(Object other)
equals
in class com.datastax.oss.driver.internal.core.metadata.schema.DefaultFunctionMetadata
public int hashCode()
hashCode
in class com.datastax.oss.driver.internal.core.metadata.schema.DefaultFunctionMetadata
public String toString()
toString
in class com.datastax.oss.driver.internal.core.metadata.schema.DefaultFunctionMetadata
Copyright © 2017–2019. All rights reserved.