private static void includeColumnRecursive ( List < OrcProto . Type > types , boolean [ ] result , int typeId ) { result [ typeId ] = true ; OrcProto . Type type = types . get ( typeId ) ; int children = type . getSubtypesCount ( ) ; for ( int i = 0 ; i < children ; ++ i ) { includeColumnRecursive ( types , result , type . getSubtypes ( i ) ) ; } }
Recurse down into a type subtree turning on all of the sub - columns .