| Package | Description |
|---|---|
| com.facebook.presto.common | |
| com.facebook.presto.common.block | |
| com.facebook.presto.common.predicate | |
| com.facebook.presto.common.type |
| Modifier and Type | Method and Description |
|---|---|
Type |
PageBuilder.getType(int channel) |
| Modifier and Type | Method and Description |
|---|---|
static Object |
Utils.blockToNativeValue(Type type,
Block block) |
static Block |
Utils.nativeValueToBlock(Type type,
Object object) |
| Modifier and Type | Method and Description |
|---|---|
static PageBuilder |
PageBuilder.withMaxPageSize(int maxPageBytes,
List<? extends Type> types) |
| Constructor and Description |
|---|
PageBuilder(int initialExpectedEntries,
List<? extends Type> types) |
PageBuilder(List<? extends Type> types)
Create a PageBuilder with given types.
|
| Modifier and Type | Method and Description |
|---|---|
int |
SortOrder.compareBlockValue(Type type,
Block leftBlock,
int leftPosition,
Block rightBlock,
int rightPosition)
Compares the values at the specified positions.
|
static Block |
RunLengthEncodedBlock.create(Type type,
Object value,
int positionCount) |
String |
DuplicateMapKeyException.getDetailedMessage(Type keyType,
SqlFunctionProperties properties) |
static MethodHandle |
MethodHandleUtil.nativeValueGetter(Type type) |
static MethodHandle |
MethodHandleUtil.nativeValueWriter(Type type) |
| Constructor and Description |
|---|
ArrayBlockBuilder(Type elementType,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries) |
ArrayBlockBuilder(Type elementType,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries,
int expectedBytesPerEntry) |
MapBlockBuilder(Type keyType,
Type valueType,
MethodHandle keyBlockEquals,
MethodHandle keyBlockHashCode,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries) |
| Constructor and Description |
|---|
RowBlockBuilder(List<Type> fieldTypes,
BlockBuilderStatus blockBuilderStatus,
int expectedEntries) |
| Modifier and Type | Method and Description |
|---|---|
Type |
ValueSet.getType() |
Type |
SortedRangeSet.getType() |
Type |
Range.getType() |
Type |
NullableValue.getType()
Deprecated.
|
Type |
NullableValue.Serializable.getType() |
Type |
Marker.getType() |
Type |
EquatableValueSet.getType() |
Type |
EquatableValueSet.ValueEntry.getType() |
Type |
Domain.getType() |
Type |
AllOrNoneValueSet.getType() |
| Modifier and Type | Method and Description |
|---|---|
static Marker |
Marker.above(Type type,
Object value) |
static ValueSet |
ValueSet.all(Type type) |
static Range |
Range.all(Type type) |
static Domain |
Domain.all(Type type) |
static NullableValue |
NullableValue.asNull(Type type)
Deprecated.
|
static Marker |
Marker.below(Type type,
Object value) |
static ValueSet |
ValueSet.copyOf(Type type,
Collection<?> values) |
static SortedRangeSet |
SortedRangeSet.copyOf(Type type,
List<Range> ranges) |
static ValueSet |
ValueSet.copyOfRanges(Type type,
Collection<Range> ranges) |
static EquatableValueSet.ValueEntry |
EquatableValueSet.ValueEntry.create(Type type,
Object value) |
static Range |
Range.equal(Type type,
Object value) |
static Marker |
Marker.exactly(Type type,
Object value) |
static Range |
Range.greaterThan(Type type,
Object low) |
static Range |
Range.greaterThanOrEqual(Type type,
Object low) |
static Range |
Range.lessThan(Type type,
Object high) |
static Range |
Range.lessThanOrEqual(Type type,
Object high) |
static Marker |
Marker.lowerUnbounded(Type type) |
static Domain |
Domain.multipleValues(Type type,
List<?> values) |
static ValueSet |
ValueSet.none(Type type) |
static Domain |
Domain.none(Type type) |
static Domain |
Domain.notNull(Type type) |
static NullableValue |
NullableValue.of(Type type,
Object value)
Deprecated.
|
static ValueSet |
ValueSet.of(Type type,
Object first,
Object... rest) |
static Domain |
Domain.onlyNull(Type type) |
static Range |
Range.range(Type type,
Object low,
boolean lowInclusive,
Object high,
boolean highInclusive) |
static Domain |
Domain.singleValue(Type type,
Object value) |
static Marker |
Marker.upperUnbounded(Type type) |
| Constructor and Description |
|---|
AllOrNoneValueSet(Type type,
boolean all) |
EquatableValueSet(Type type,
boolean whiteList,
Set<EquatableValueSet.ValueEntry> entries) |
Marker(Type type,
Optional<Block> valueBlock,
Marker.Bound bound)
LOWER UNBOUNDED is specified with an empty value and a ABOVE bound
UPPER UNBOUNDED is specified with an empty value and a BELOW bound
|
NullableValue(Type type,
Object value)
Deprecated.
|
Serializable(Type type,
Block block) |
ValueEntry(Type type,
Block block) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EnumType<T> |
interface |
FixedWidthType
FixedWidthType is a type that has a fixed size for every value.
|
interface |
VariableWidthType
VariableWidthType is a type that can have a different size for every value.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractIntType |
class |
AbstractLongType |
class |
AbstractPrimitiveType |
class |
AbstractType |
class |
AbstractVarcharType |
class |
AbstractVariableWidthType |
class |
ArrayType |
class |
BigintEnumType |
class |
BigintType |
class |
BooleanType |
class |
CharType |
class |
DateType |
class |
DecimalType |
class |
DistinctType |
class |
DoubleType |
class |
FunctionType |
class |
HyperLogLogType |
class |
IntegerType |
class |
JsonType
The stack representation for JSON objects must have the keys in natural sorted order.
|
class |
KdbTreeType |
class |
MapType |
class |
P4HyperLogLogType |
class |
RealType |
class |
RowType
As defined in ISO/IEC FCD 9075-2 (SQL 2011), section 4.8
|
class |
SmallintType |
class |
StatisticalDigestType |
class |
TimestampType |
class |
TimestampWithTimeZoneType |
class |
TimeType |
class |
TimeWithTimeZoneType |
class |
TinyintType |
class |
TypeWithName |
class |
UnknownType |
class |
VarbinaryType |
class |
VarcharEnumType |
class |
VarcharType |
| Modifier and Type | Method and Description |
|---|---|
Type |
VarcharEnumParametricType.createType(List<TypeParameter> parameters) |
Type |
StatisticalDigestParametricType.createType(List<TypeParameter> parameters) |
Type |
ParametricType.createType(List<TypeParameter> parameters) |
Type |
BigintEnumParametricType.createType(List<TypeParameter> parameters) |
Type |
DistinctType.getBaseType() |
Type |
ArrayType.getElementType() |
Type |
MapType.getKeyType() |
Type |
TypeManager.getParameterizedType(String baseTypeName,
List<TypeSignatureParameter> typeParameters)
Gets the type with the specified base type, and the given parameters, or null if not found.
|
Type |
FunctionType.getReturnType() |
Type |
TypeWithName.getType() |
Type |
TypeParameter.getType() |
Type |
RowType.Field.getType() |
Type |
NamedType.getType() |
Type |
TDigestParametricType.getType(List<TypeParameter> parameters) |
protected abstract Type |
StatisticalDigestParametricType.getType(List<TypeParameter> parameters) |
Type |
QuantileDigestParametricType.getType(List<TypeParameter> parameters) |
Type |
TypeManager.getType(TypeSignature signature)
Gets the type with the specified signature, or null if not found.
|
Type |
VarcharEnumType.getValueType() |
Type |
MapType.getValueType() |
Type |
EnumType.getValueType() |
Type |
BigintEnumType.getValueType() |
| Modifier and Type | Method and Description |
|---|---|
List<Type> |
FunctionType.getArgumentTypes() |
List<Type> |
TypeWithName.getTypeParameters() |
List<Type> |
Type.getTypeParameters()
For parameterized types returns the list of parameters.
|
List<Type> |
StatisticalDigestType.getTypeParameters() |
List<Type> |
RowType.getTypeParameters() |
List<Type> |
MapType.getTypeParameters() |
List<Type> |
FunctionType.getTypeParameters() |
List<Type> |
DistinctType.getTypeParameters() |
List<Type> |
ArrayType.getTypeParameters() |
List<Type> |
AbstractType.getTypeParameters() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
TypeManager.canCoerce(Type actualType,
Type expectedType) |
static RowType.Field |
RowType.field(String name,
Type type) |
static RowType.Field |
RowType.field(Type type) |
static long |
TypeUtils.hashPosition(Type type,
Block block,
int position) |
static boolean |
TypeUtils.isApproximateNumericType(Type type) |
static boolean |
Chars.isCharType(Type type) |
static boolean |
TypeUtils.isDistinctType(Type type) |
static boolean |
TypeUtils.isEnumType(Type type) |
static boolean |
TypeUtils.isExactNumericType(Type type) |
static boolean |
TypeUtils.isFloatingPointNaN(Type type,
Object value) |
static boolean |
Decimals.isLongDecimal(Type type) |
static boolean |
TypeUtils.isNonDecimalNumericType(Type type) |
static boolean |
TypeUtils.isNumericType(Type type) |
static boolean |
Decimals.isShortDecimal(Type type) |
static boolean |
VarbinaryType.isVarbinaryType(Type type) |
static boolean |
Varchars.isVarcharType(Type type) |
static TypeParameter |
TypeParameter.of(Type type) |
static io.airlift.slice.Slice |
Chars.padSpaces(io.airlift.slice.Slice slice,
Type type) |
static Object |
TypeUtils.readNativeValue(Type type,
Block block,
int position)
Get the native value as an object in the value at
position of block. |
static io.airlift.slice.Slice |
Varchars.truncateToLength(io.airlift.slice.Slice slice,
Type type) |
static io.airlift.slice.Slice |
Chars.truncateToLengthAndTrimSpaces(io.airlift.slice.Slice slice,
Type type) |
static void |
TypeUtils.writeNativeValue(Type type,
BlockBuilder blockBuilder,
Object value)
Write a native value object to the current entry of
blockBuilder. |
| Modifier and Type | Method and Description |
|---|---|
static RowType |
RowType.anonymous(List<Type> types) |
static boolean |
TypeUtils.containsDistinctType(List<Type> types)
Recursive version of isDistinctType.
|
static RowType |
RowType.withDefaultFieldNames(List<Type> types) |
| Constructor and Description |
|---|
ArrayType(Type elementType) |
DistinctType(DistinctTypeInfo distinctTypeInfo,
Type baseType,
Function<QualifiedObjectName,DistinctType> distinctTypeLoader) |
Field(Optional<String> name,
Type type) |
Field(Optional<String> name,
Type type,
boolean delimited) |
FunctionType(List<Type> argumentTypes,
Type returnType) |
MapType(Type keyType,
Type valueType,
MethodHandle keyBlockEquals,
MethodHandle keyBlockHashCode) |
NamedType(Optional<RowFieldName> name,
Type type) |
StatisticalDigestType(String name,
Type type) |
TypeWithName(QualifiedObjectName name,
Type type) |
| Constructor and Description |
|---|
FunctionType(List<Type> argumentTypes,
Type returnType) |
Copyright © 2012–2022. All rights reserved.