public class TypeCoercion extends Object
Constructor and Description |
---|
TypeCoercion() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canCast(TypeInformation<?> from,
TypeInformation<?> to)
All the supported cast types in flink-table.
|
static boolean |
canSafelyCast(TypeInformation<?> from,
TypeInformation<?> to)
Test if we can do cast safely without lose of information.
|
static scala.collection.IndexedSeq<TypeInformation<?>> |
numericWideningPrecedence() |
static scala.Option<TypeInformation<?>> |
widerTypeOf(TypeInformation<?> tp1,
TypeInformation<?> tp2) |
public static scala.collection.IndexedSeq<TypeInformation<?>> numericWideningPrecedence()
public static scala.Option<TypeInformation<?>> widerTypeOf(TypeInformation<?> tp1, TypeInformation<?> tp2)
public static boolean canSafelyCast(TypeInformation<?> from, TypeInformation<?> to)
from
- (undocumented)to
- (undocumented)public static boolean canCast(TypeInformation<?> from, TypeInformation<?> to)
from
- (undocumented)to
- (undocumented)Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.