Package io.trino.operator.scalar
Class ArraySubscriptOperator
- java.lang.Object
-
- io.trino.metadata.SqlScalarFunction
-
- io.trino.metadata.SqlOperator
-
- io.trino.operator.scalar.ArraySubscriptOperator
-
- All Implemented Interfaces:
SqlFunction
public class ArraySubscriptOperator extends SqlOperator
-
-
Field Summary
Fields Modifier and Type Field Description static ArraySubscriptOperatorARRAY_SUBSCRIPT
-
Constructor Summary
Constructors Modifier Constructor Description protectedArraySubscriptOperator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BooleanbooleanSubscript(Type elementType, Block array, long index)static voidcheckArrayIndex(long index)static voidcheckIndex(Block array, long index)static DoubledoubleSubscript(Type elementType, Block array, long index)static LonglongSubscript(Type elementType, Block array, long index)static ObjectobjectSubscript(Type elementType, Block array, long index)static io.airlift.slice.SlicesliceSubscript(Type elementType, Block array, long index)protected ScalarFunctionImplementationspecialize(BoundSignature boundSignature)-
Methods inherited from class io.trino.metadata.SqlScalarFunction
getFunctionMetadata, specialize
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.trino.metadata.SqlFunction
getFunctionDependencies, getFunctionDependencies
-
-
-
-
Field Detail
-
ARRAY_SUBSCRIPT
public static final ArraySubscriptOperator ARRAY_SUBSCRIPT
-
-
Method Detail
-
specialize
protected ScalarFunctionImplementation specialize(BoundSignature boundSignature)
- Overrides:
specializein classSqlScalarFunction
-
sliceSubscript
public static io.airlift.slice.Slice sliceSubscript(Type elementType, Block array, long index)
-
checkArrayIndex
public static void checkArrayIndex(long index)
-
checkIndex
public static void checkIndex(Block array, long index)
-
-