public final class ObjectInspectorConverters extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ObjectInspectorConverters.Converter
A converter which will convert objects with one ObjectInspector to another.
|
static class |
ObjectInspectorConverters.IdentityConverter
IdentityConverter.
|
static class |
ObjectInspectorConverters.ListConverter
A converter class for List.
|
static class |
ObjectInspectorConverters.MapConverter
A converter class for Map.
|
static class |
ObjectInspectorConverters.StructConverter
A converter class for Struct.
|
static class |
ObjectInspectorConverters.UnionConverter
A converter class for Union.
|
Modifier and Type | Method and Description |
---|---|
static ObjectInspector |
getConvertedOI(ObjectInspector inputOI,
ObjectInspector outputOI) |
static ObjectInspector |
getConvertedOI(ObjectInspector inputOI,
ObjectInspector outputOI,
Map<ObjectInspector,Boolean> oiSettableProperties) |
static ObjectInspector |
getConvertedOI(ObjectInspector inputOI,
ObjectInspector outputOI,
Map<ObjectInspector,Boolean> oiSettableProperties,
boolean equalsCheck)
Utility function to convert from one object inspector type to another.
|
static ObjectInspectorConverters.Converter |
getConverter(ObjectInspector inputOI,
ObjectInspector outputOI)
Returns a converter that converts objects from one OI to another OI.
|
public static ObjectInspectorConverters.Converter getConverter(ObjectInspector inputOI, ObjectInspector outputOI)
public static ObjectInspector getConvertedOI(ObjectInspector inputOI, ObjectInspector outputOI, Map<ObjectInspector,Boolean> oiSettableProperties)
public static ObjectInspector getConvertedOI(ObjectInspector inputOI, ObjectInspector outputOI)
public static ObjectInspector getConvertedOI(ObjectInspector inputOI, ObjectInspector outputOI, Map<ObjectInspector,Boolean> oiSettableProperties, boolean equalsCheck)
inputOI
- : input object inspectoroutputOI
- : output object inspectoroiSettableProperties
- : The object inspector to isSettable mapping used to cache
intermediate results.equalsCheck
- : Do we need to check if the inputOI and outputOI are the same?
true : If they are the same, we return the object inspector directly.
false : Do not perform an equality check on inputOI and outputOICopyright © 2017 The Apache Software Foundation. All rights reserved.