Class BytesConversionFcts.ToBlobFunction
- 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.BytesConversionFcts.ToBlobFunction
-
- All Implemented Interfaces:
AssignmentTestable
,Function
,ScalarFunction
- Enclosing class:
- BytesConversionFcts
public static class BytesConversionFcts.ToBlobFunction extends NativeScalarFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.cassandra.cql3.AssignmentTestable
AssignmentTestable.TestResult
-
-
Field Summary
-
Fields inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
argTypes, name, returnType
-
Fields inherited from interface org.apache.cassandra.cql3.functions.Function
UNRESOLVED
-
-
Constructor Summary
Constructors Constructor Description ToBlobFunction(CQL3Type fromType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
execute(Arguments arguments)
Applies this function to the specified arguments.NativeFunction
withLegacyName()
Returns a copy of this function using its old pre-5.0 name before the adoption of snake-cased function names.-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeScalarFunction
isAggregate, isCalledOnNullInput, isPartialApplicationMonotonic
-
Methods inherited from class org.apache.cassandra.cql3.functions.NativeFunction
isNative, isPure
-
Methods inherited from class org.apache.cassandra.cql3.functions.AbstractFunction
addFunctionsTo, argTypes, argumentsList, columnName, elementKeyspace, elementName, equals, getCompatibleTypeIfKnown, hashCode, name, referencesUserType, returnType, testAssignment, toCqlString, toString, typesMatch
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.cassandra.cql3.AssignmentTestable
getCompatibleTypeIfKnown, testAssignment
-
Methods inherited from interface org.apache.cassandra.cql3.functions.Function
addFunctionsTo, argTypes, columnName, compare, isNative, isPure, name, referencesUserType, returnType
-
Methods inherited from interface org.apache.cassandra.cql3.functions.ScalarFunction
isMonotonic, partialApplication
-
-
-
-
Constructor Detail
-
ToBlobFunction
public ToBlobFunction(CQL3Type fromType)
-
-
Method Detail
-
execute
public java.nio.ByteBuffer execute(Arguments arguments)
Description copied from interface:ScalarFunction
Applies this function to the specified arguments.- Parameters:
arguments
- the input arguments for the function- Returns:
- the result of applying this function to the arguments
-
withLegacyName
public NativeFunction withLegacyName()
Description copied from class:NativeFunction
Returns a copy of this function using its old pre-5.0 name before the adoption of snake-cased function names. Those naming conventions were adopted in 5.0, but we still need to support the old names for compatibility. See CASSANDRA-18037 for further details.- Overrides:
withLegacyName
in classNativeFunction
- Returns:
- a copy of this function using its old pre-5.0 deprecated name, or
null
if the pre-5.0 function name already satisfied the naming conventions.
-
-