Class MaskingFunction
java.lang.Object
org.apache.cassandra.cql3.functions.AbstractFunction
org.apache.cassandra.cql3.functions.NativeFunction
org.apache.cassandra.cql3.functions.NativeScalarFunction
org.apache.cassandra.cql3.functions.masking.MaskingFunction
- All Implemented Interfaces:
AssignmentTestable,Function,ScalarFunction
- Direct Known Subclasses:
DefaultMaskingFunction,HashMaskingFunction,NullMaskingFunction,PartialMaskingFunction,ReplaceMaskingFunction
A
NativeScalarFunction that totally or partially replaces the original value of a column value,
meant to obscure the real value of the column.
The names of all masking functions share a common prefix, NAME_PREFIX, to easily identify
their purpose.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe common prefix for the names of all the native data masking functions.Fields inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
argTypes, name, returnTypeFields inherited from interface org.apache.cassandra.cql3.functions.Function
UNRESOLVED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMaskingFunction(FunctionName name, AbstractType<?> outputType, AbstractType<?> inputType, AbstractType<?>... argsType) -
Method Summary
Methods inherited from class org.apache.cassandra.cql3.functions.NativeScalarFunction
isAggregate, isCalledOnNullInput, isPartialApplicationMonotonicMethods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative, isPure, newArguments, withLegacyNameMethods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, columnName, elementKeyspace, elementName, equals, getCompatibleTypeIfKnown, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString, typesMatchMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
getCompatibleTypeIfKnown, testAssignmentMethods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, columnName, compare, isNative, isPure, name, newArguments, referencesUserType, returnTypeMethods inherited from interface org.apache.cassandra.cql3.functions.ScalarFunction
execute, isMonotonic, partialApplication
-
Field Details
-
NAME_PREFIX
The common prefix for the names of all the native data masking functions.- See Also:
-
-
Constructor Details
-
MaskingFunction
protected MaskingFunction(FunctionName name, AbstractType<?> outputType, AbstractType<?> inputType, AbstractType<?>... argsType) - Parameters:
name- the name of the functionoutputType- the type of the values returned by the functioninputType- the type of the values accepted by the function, always be the first argument of the functionargsType- the type of the additional arguments of the function
-