public class ThriftObjectInspectorUtils extends Object
| Constructor and Description |
|---|
ThriftObjectInspectorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Type |
getFieldType(Class<?> containingClass,
String fieldName)
Returns generic type for a field in a Thrift class.
|
public static Type getFieldType(Class<?> containingClass, String fieldName)
isFieldName()
for a boolean type or getFieldName for other types). The return
type works for both structs and unions. Reflecting directly based on
fields does not work for unions.Type of the thrift field.Copyright © 2019 The Apache Software Foundation. All Rights Reserved.