Uses of Interface
io.trino.spi.type.Type
Packages that use Type
Package
Description
-
Uses of Type in io.trino.spi
Methods in io.trino.spi that return types with arguments of type TypeMethod parameters in io.trino.spi with type arguments of type TypeModifier and TypeMethodDescriptionPageIndexerFactory.createPageIndexer(List<Type> types) long[]PageSorter.sort(List<Type> types, List<Page> pages, List<Integer> sortChannels, List<SortOrder> sortOrders, int expectedPositions) static PageBuilderPageBuilder.withMaxPageSize(int maxPageBytes, List<? extends Type> types) Constructor parameters in io.trino.spi with type arguments of type TypeModifierConstructorDescriptionPageBuilder(int initialExpectedEntries, List<? extends Type> types) PageBuilder(List<? extends Type> types) Create a PageBuilder with given types. -
Uses of Type in io.trino.spi.block
Methods in io.trino.spi.block that return TypeModifier and TypeMethodDescriptionSqlMap.getMapType()BlockEncodingSerde.readType(io.airlift.slice.SliceInput sliceInput) Reads a type from the input.Methods in io.trino.spi.block with parameters of type TypeModifier and TypeMethodDescriptionstatic BlockDuplicateMapKeyException.withDetailedMessage(Type keyType, ConnectorSession session) voidWrite a type to the output.Constructors in io.trino.spi.block with parameters of type TypeModifierConstructorDescriptionArrayBlockBuilder(Type elementType, BlockBuilderStatus blockBuilderStatus, int expectedEntries) ArrayBlockBuilder(Type elementType, BlockBuilderStatus blockBuilderStatus, int expectedEntries, int expectedBytesPerEntry) Constructor parameters in io.trino.spi.block with type arguments of type TypeModifierConstructorDescriptionRowBlockBuilder(List<Type> fieldTypes, BlockBuilderStatus blockBuilderStatus, int expectedEntries) -
Uses of Type in io.trino.spi.connector
Methods in io.trino.spi.connector that return TypeModifier and TypeMethodDescriptionAggregateFunction.getOutputType()Assignment.getType()ColumnMetadata.getType()ColumnSchema.getType()InMemoryRecordSet.InMemoryRecordCursor.getType(int field) RecordCursor.getType(int field) ConnectorTableVersion.getVersionType()Methods in io.trino.spi.connector that return types with arguments of type TypeModifier and TypeMethodDescriptionInMemoryRecordSet.getColumnTypes()RecordSet.getColumnTypes()ConnectorMetadata.getSupportedType(ConnectorSession session, Map<String, Object> tableProperties, Type type) Return the effectiveTypethat is supported by the connector for the given type.Methods in io.trino.spi.connector with parameters of type TypeModifier and TypeMethodDescriptiondefault voidConnectorMetadata.addField(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) Add the specified field, potentially nested, to a row.default Optional<ViewExpression> ConnectorAccessControl.getColumnMask(ConnectorSecurityContext context, SchemaTableName tableName, String columnName, Type type) Deprecated.ConnectorMetadata.getSupportedType(ConnectorSession session, Map<String, Object> tableProperties, Type type) Return the effectiveTypethat is supported by the connector for the given type.default voidConnectorMetadata.setColumnType(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, Type type) Set the specified column typedefault voidConnectorMetadata.setFieldType(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> fieldPath, Type type) Set the specified field typeMethod parameters in io.trino.spi.connector with type arguments of type TypeModifier and TypeMethodDescriptionstatic InMemoryRecordSet.BuilderInMemoryRecordSet.builder(Collection<Type> columnsTypes) ConnectorNodePartitioningProvider.getBucketFunction(ConnectorTransactionHandle transactionHandle, ConnectorSession session, ConnectorPartitioningHandle partitioningHandle, List<Type> partitionChannelTypes, int bucketCount) Constructors in io.trino.spi.connector with parameters of type TypeModifierConstructorDescriptionAggregateFunction(String aggregateFunctionName, Type outputType, List<ConnectorExpression> arguments, List<SortItem> sortItems, boolean isDistinct, Optional<ConnectorExpression> filter) Assignment(String variable, ColumnHandle column, Type type) ColumnMetadata(String name, Type type) ConnectorTableVersion(PointerType pointerType, Type versionType, Object version) Constructor parameters in io.trino.spi.connector with type arguments of type TypeModifierConstructorDescriptionprotectedInMemoryRecordCursor(List<Type> types, Iterator<? extends List<?>> records) InMemoryRecordSet(Collection<? extends Type> types, Iterable<? extends List<?>> records) RecordPageSource(List<Type> types, RecordCursor cursor) -
Uses of Type in io.trino.spi.expression
Methods in io.trino.spi.expression that return TypeConstructors in io.trino.spi.expression with parameters of type TypeModifierConstructorDescriptionCall(Type type, FunctionName functionName, List<ConnectorExpression> arguments) ConnectorExpression(Type type) FieldDereference(Type type, ConnectorExpression target, int field) -
Uses of Type in io.trino.spi.function
Methods in io.trino.spi.function that return TypeModifier and TypeMethodDescriptionBoundSignature.getArgumentType(int index) BoundSignature.getReturnType()AccumulatorStateSerializer.getSerializedType()FunctionDependencies.getType(TypeSignature typeSignature) InOut.getType()Methods in io.trino.spi.function that return types with arguments of type TypeMethods in io.trino.spi.function with parameters of type TypeModifier and TypeMethodDescriptionstatic MethodHandleScalarFunctionAdapter.adapt(MethodHandle methodHandle, Type returnType, List<Type> actualArgumentTypes, InvocationConvention actualConvention, InvocationConvention expectedConvention) Adapt the method handle from the actual calling convention of a method be converted to the expected calling convention?FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addCast(Type fromType, Type toType) FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addOptionalCast(Type fromType, Type toType) Signature.Builder.argumentType(Type type) TypeVariableConstraint.TypeVariableConstraintBuilder.castableFrom(Type type) TypeVariableConstraint.TypeVariableConstraintBuilder.castableTo(Type type) FunctionDependencies.getCastImplementation(Type fromType, Type toType, InvocationConvention invocationConvention) FunctionDependencies.getCastNullability(Type fromType, Type toType) AggregationFunctionMetadata.AggregationFunctionMetadataBuilder.intermediateType(Type type) Signature.Builder.returnType(Type returnType) Method parameters in io.trino.spi.function with type arguments of type TypeModifier and TypeMethodDescriptionstatic MethodHandleScalarFunctionAdapter.adapt(MethodHandle methodHandle, Type returnType, List<Type> actualArgumentTypes, InvocationConvention actualConvention, InvocationConvention expectedConvention) Adapt the method handle from the actual calling convention of a method be converted to the expected calling convention?FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addFunction(CatalogSchemaFunctionName name, List<Type> parameterTypes) FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addOperator(OperatorType operatorType, List<Type> parameterTypes) FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addOptionalFunction(CatalogSchemaFunctionName name, List<Type> parameterTypes) FunctionDependencyDeclaration.FunctionDependencyDeclarationBuilder.addOptionalOperator(OperatorType operatorType, List<Type> parameterTypes) FunctionDependencies.getFunctionNullability(CatalogSchemaFunctionName name, List<Type> parameterTypes) FunctionDependencies.getOperatorImplementation(OperatorType operatorType, List<Type> parameterTypes, InvocationConvention invocationConvention) FunctionDependencies.getOperatorNullability(OperatorType operatorType, List<Type> parameterTypes) FunctionDependencies.getScalarFunctionImplementation(CatalogSchemaFunctionName name, List<Type> parameterTypes, InvocationConvention invocationConvention) Constructors in io.trino.spi.function with parameters of type TypeModifierConstructorDescriptionBoundSignature(CatalogSchemaFunctionName name, Type returnType, List<Type> argumentTypes) Constructor parameters in io.trino.spi.function with type arguments of type TypeModifierConstructorDescriptionBoundSignature(CatalogSchemaFunctionName name, Type returnType, List<Type> argumentTypes) -
Uses of Type in io.trino.spi.function.table
Methods in io.trino.spi.function.table that return TypeMethods in io.trino.spi.function.table that return types with arguments of type TypeMethods in io.trino.spi.function.table with parameters of type TypeModifier and TypeMethodDescriptionConstructors in io.trino.spi.function.table with parameters of type TypeConstructor parameters in io.trino.spi.function.table with type arguments of type Type -
Uses of Type in io.trino.spi.predicate
Methods in io.trino.spi.predicate that return TypeModifier and TypeMethodDescriptionAllOrNoneValueSet.getType()Domain.getType()EquatableValueSet.getType()EquatableValueSet.ValueEntry.getType()NullableValue.getType()NullableValue.Serializable.getType()Range.getType()SortedRangeSet.getType()ValueSet.getType()Methods in io.trino.spi.predicate with parameters of type TypeModifier and TypeMethodDescriptionstatic Domainstatic Rangestatic ValueSetstatic NullableValuestatic ObjectUtils.blockToNativeValue(Type type, Block block) static SortedRangeSet.Builderstatic SortedRangeSetProvided Ranges are unioned together to form the SortedRangeSetstatic ValueSetValueSet.copyOf(Type type, Collection<?> values) static ValueSetValueSet.copyOfRanges(Type type, Collection<Range> ranges) static EquatableValueSet.ValueEntrystatic Rangestatic SortedRangeSetSortedRangeSet.fromJson(Type type, boolean[] inclusive, Block sortedRanges, SortedRangeSet.DiscreteSetMarker discreteSetMarker) Deprecated.static RangeRange.greaterThan(Type type, Object low) static RangeRange.greaterThanOrEqual(Type type, Object low) static Rangestatic RangeRange.lessThanOrEqual(Type type, Object high) static DomainDomain.multipleValues(Type type, List<?> values) static DomainDomain.multipleValues(Type type, List<?> values, boolean nullAllowed) static BlockUtils.nativeValueToBlock(Type type, Object object) static Domainstatic ValueSetstatic Domainstatic NullableValuestatic ValueSetstatic Domainstatic Rangestatic DomainDomain.singleValue(Type type, Object value) static DomainDomain.singleValue(Type type, Object value, boolean nullAllowed) Constructors in io.trino.spi.predicate with parameters of type TypeModifierConstructorDescriptionAllOrNoneValueSet(Type type, boolean all) EquatableValueSet(Type type, boolean inclusive, Set<EquatableValueSet.ValueEntry> entries) NullableValue(Type type, Object value) Serializable(Type type, Block block) ValueEntry(Type type, Block block) -
Uses of Type in io.trino.spi.security
Methods in io.trino.spi.security with parameters of type TypeModifier and TypeMethodDescriptiondefault Optional<ViewExpression> SystemAccessControl.getColumnMask(SystemSecurityContext context, CatalogSchemaTableName tableName, String columnName, Type type) -
Uses of Type in io.trino.spi.session
Methods in io.trino.spi.session that return TypeConstructors in io.trino.spi.session with parameters of type Type -
Uses of Type in io.trino.spi.statistics
Methods in io.trino.spi.statistics with parameters of type TypeModifier and TypeMethodDescriptionstatic Optional<DoubleRange> Creates DoubleRange from Trino native representation.static OptionalDoubleStatsUtil.toStatsRepresentation(Type type, Object value) -
Uses of Type in io.trino.spi.type
Subinterfaces of Type in io.trino.spi.typeModifier and TypeInterfaceDescriptioninterfaceFixedWidthType is a type that has a fixed size for every value.interfaceVariableWidthType is a type that can have a different size for every value.Classes in io.trino.spi.type that implement TypeModifier and TypeClassDescriptionclassclassclassclassclassfinal classfinal classfinal classfinal classclassfinal classclassfinal classclassclassclassfinal classclassAs defined in ISO/IEC FCD 9075-2 (SQL 2011), section 4.8final classclassA timestamp is to be interpreted as local date time without regards to any time zone.classfinal classA time is stored as picoseconds from midnight.classfinal classclassUUIDs are encoded in big-endian representation (the bytes are stored in the same order as they appear when a UUID is printed in hexadecimal).final classfinal classMethods in io.trino.spi.type that return TypeModifier and TypeMethodDescriptionParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) QuantileDigestParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) TimeParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) TimestampParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) TimestampWithTimeZoneParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) TimeWithTimeZoneParametricType.createType(TypeManager typeManager, List<TypeParameter> parameters) TypeManager.fromSqlType(String type) Gets a type given it's SQL representationArrayType.getElementType()MapType.getKeyType()default TypeTypeManager.getParameterizedType(String baseTypeName, List<TypeSignatureParameter> typeParameters) Gets the type with the specified base type and the given parameters.NamedType.getType()RowType.Field.getType()Gets the type with the give (opaque) idTypeManager.getType(TypeSignature signature) Gets the type with the specified signature.TypeParameter.getType()MapType.getValueType()QuantileDigestType.getValueType()Methods in io.trino.spi.type that return types with arguments of type TypeModifier and TypeMethodDescriptionAbstractType.getTypeParameters()ArrayType.getTypeParameters()MapType.getTypeParameters()QuantileDigestType.getTypeParameters()RowType.getTypeParameters()Type.getTypeParameters()For parameterized types returns the list of parameters.Methods in io.trino.spi.type with parameters of type TypeModifier and TypeMethodDescriptionstatic RowTypeRowType.anonymousRow(Type... types) static RowType.Fieldstatic RowType.FieldTypeOperators.getComparisonUnorderedFirstOperator(Type type, InvocationConvention callingConvention) TypeOperators.getComparisonUnorderedLastOperator(Type type, InvocationConvention callingConvention) TypeOperators.getEqualOperator(Type type, InvocationConvention callingConvention) TypeOperators.getHashCodeOperator(Type type, InvocationConvention callingConvention) TypeOperators.getIdenticalOperator(Type type, InvocationConvention callingConvention) TypeOperators.getIndeterminateOperator(Type type, InvocationConvention callingConvention) TypeOperators.getLessThanOperator(Type type, InvocationConvention callingConvention) TypeOperators.getLessThanOrEqualOperator(Type type, InvocationConvention callingConvention) TypeOperators.getOrderingOperator(Type type, SortOrder sortOrder, InvocationConvention callingConvention) TypeOperators.getReadValueOperator(Type type, InvocationConvention callingConvention) TypeOperators.getXxHash64Operator(Type type, InvocationConvention callingConvention) static booleanTypeUtils.isFloatingPointNaN(Type type, Object value) static TypeParameterstatic ObjectTypeUtils.readNativeValue(Type type, Block block, int position) Get the native value as an object in the value atpositionofblock.static io.airlift.slice.SliceVarchars.truncateToLength(io.airlift.slice.Slice slice, Type type) static io.airlift.slice.SliceChars.truncateToLengthAndTrimSpaces(io.airlift.slice.Slice slice, Type type) static voidTypeUtils.writeNativeValue(Type type, BlockBuilder blockBuilder, Object value) Write a native value object to the current entry ofblockBuilder.static ValueBlockTypeUtils.writeNativeValue(Type type, Object value) Method parameters in io.trino.spi.type with type arguments of type TypeConstructors in io.trino.spi.type with parameters of type Type
ConnectorAccessControl.getColumnMasks(ConnectorSecurityContext, SchemaTableName, List)