public interface TypeMapper<S>
Modifier and Type | Method and Description |
---|---|
TypeInformation<?> |
readType(S source)
Reads the
TypeInformation from the given source. |
<T> TypeInformation<? extends T> |
readType(S source,
TypeInformation<T> defaultType)
Returns the
TypeInformation from the given source if it is a more concrete type than the given default one. |
void |
writeType(Class<?> type,
S dbObject)
Writes type information for the given type into the given sink.
|
void |
writeType(TypeInformation<?> type,
S dbObject)
Writes type information for the given
TypeInformation into the given sink. |
@Nullable TypeInformation<?> readType(S source)
TypeInformation
from the given source.source
- must not be null.<T> TypeInformation<? extends T> readType(S source, TypeInformation<T> defaultType)
TypeInformation
from the given source if it is a more concrete type than the given default one.source
- must not be null.defaultType
- must not be null.void writeType(Class<?> type, S dbObject)
type
- must not be null.dbObject
- must not be null.void writeType(TypeInformation<?> type, S dbObject)
TypeInformation
into the given sink.type
- must not be null.dbObject
- must not be null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.