Class ChildrenParser

    • Constructor Detail

      • ChildrenParser

        public ChildrenParser()
    • Method Detail

      • type

        public String type()
        Specified by:
        type in interface  Aggregator.Parser
        Returns:
        The aggregation type this parser is associated with.
      • parse

        public AggregatorFactory parse(String aggregationName,
                                       XContentParser parser,
                                       SearchContext context)
                                throws IOException
        Description copied from interface: Aggregator.Parser
        Returns the aggregator factory with which this parser is associated, may return null indicating the aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).
        Specified by:
        parse in interface  Aggregator.Parser
        Parameters:
        aggregationName - The name of the aggregation
        parser - The xcontent parser
        context - The search context
        Returns:
        The resolved aggregator factory or null in case the aggregation should be skipped
        Throws:
        IOException - When parsing fails