Github user jackylk commented on a diff in the pull request: https://github.com/apache/incubator-carbondata/pull/240#discussion_r84228406 --- Diff: processing/src/main/java/org/apache/carbondata/processing/newflow/parser/GenericParser.java --- @@ -0,0 +1,22 @@ +package org.apache.carbondata.processing.newflow.parser; + +/** + * Parse the data according to implementation, The implementation classes can be struct, array or + * map datatypes. + */ +public interface GenericParser<E> { + + /** + * Parse the data as per the delimiter + * @param data + * @return + */ + E parse(String data); + + /** + * Children of the parser. + * @param parser + */ + void addChildren(GenericParser parser); --- End diff -- This can be the behavior of parser for complex type only, so I think you can create a sub-interface for `ComplexTypePaser` extending `GenericParser`. Or even better, you can remove it and add it in `ArrayParserImpl` and `StructParserImpl` only
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---