コード例 #1
0
        public static List <TypeInfo> typeInfosFromTypeNames(List <String> typeNames)
        {
            List <TypeInfo> result = new List <TypeInfo>(typeNames.Count);

            for (int i = 0; i < typeNames.Count; i++)
            {
                TypeInfo typeInfo = TypeInfoUtils.getTypeInfoFromTypeString(typeNames[i]);
                result.Add(typeInfo);
            }
            return(result);
        }
コード例 #2
0
        public static List <TypeInfo> typeInfosFromStructObjectInspector(
            StructObjectInspector structObjectInspector)
        {
            IList <StructField> fields       = structObjectInspector.getAllStructFieldRefs();
            List <TypeInfo>     typeInfoList = new List <TypeInfo>(fields.Count);

            foreach (StructField field in fields)
            {
                TypeInfo typeInfo = TypeInfoUtils.getTypeInfoFromTypeString(
                    field.getFieldObjectInspector().getTypeName());
                typeInfoList.Add(typeInfo);
            }
            return(typeInfoList);
        }