@SuppressWarnings({"rawtypes", "unchecked"})
    @Override
    public List<?> getList(Object data) {
        List list = this.xmlProcessor.getList(data);
        ObjectInspector listElementObjectInspector = getListElementObjectInspector();
        Category category = listElementObjectInspector.getCategory();
        if (category == Category.PRIMITIVE) {
            PrimitiveObjectInspector primitiveObjectInspector = (PrimitiveObjectInspector) listElementObjectInspector;
            PrimitiveCategory primitiveCategory = primitiveObjectInspector.getPrimitiveCategory();
            if (list != null) {
                List result = new ArrayList();
                for (Object primitive : list) {
                    result.add(this.xmlProcessor.getPrimitiveObjectValue(primitive, primitiveCategory));
                }
                return result;
            }
        }
        return list;
    }
@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) @ Override public List < ? > getList ( Object data ) { List list = this . xmlProcessor . getList ( data ) ; ObjectInspector listElementObjectInspector = getListElementObjectInspector ( ) ; Category category = listElementObjectInspector . getCategory ( ) ; if ( category == Category . PRIMITIVE ) { PrimitiveObjectInspector primitiveObjectInspector = ( PrimitiveObjectInspector ) listElementObjectInspector ; PrimitiveCategory primitiveCategory = primitiveObjectInspector . getPrimitiveCategory ( ) ; if ( list != null ) { List result = new ArrayList ( ) ; for ( Object primitive : list ) { result . add ( this . xmlProcessor . getPrimitiveObjectValue ( primitive , primitiveCategory ) ) ; } return result ; } } return list ; }
@see org.apache.hadoop.hive.serde2.objectinspector.StandardListObjectInspector#getList(java.lang.Object)