Class DocumentAnalysisResponse.FieldAnalysis

  • Enclosing class:
    DocumentAnalysisResponse

    public static class DocumentAnalysisResponse.FieldAnalysis
    extends Object
    An analysis process breakdown for a specific field. Holds a list of query time analysis phases (that is, if a query analysis was requested in the first place) and a list of index time analysis phases for each field value (a field can be multi-valued).
    • Method Detail

      • getFieldName

        public String getFieldName()
        Returns the field name.
        Returns:
        The name of the field.
      • getQueryPhasesCount

        public int getQueryPhasesCount()
        Returns the number of query time analysis phases or -1 if this field analysis doesn't hold a query time analysis.
        Returns:
        Returns the number of query time analysis phases or -1 if this field analysis doesn't hold a query time analysis.
      • getQueryPhases

        public Iterable<AnalysisResponseBase.AnalysisPhase> getQueryPhases()
        Returns the query time analysis phases for the field or null if this field doesn't hold a query time analysis.
        Returns:
        Returns the query time analysis phases for the field or null if this field doesn't hold a query time analysis.
      • getValueCount

        public int getValueCount()
        Returns the number of values the field has.
        Returns:
        The number of values the field has.
      • getIndexPhasesCount

        public int getIndexPhasesCount​(String fieldValue)
        Returns the number of index time analysis phases the given field value has.
        Parameters:
        fieldValue - The field value.
        Returns:
        The number of index time analysis phases the given field value has.
      • getIndexPhases

        public Iterable<AnalysisResponseBase.AnalysisPhase> getIndexPhases​(String fieldValue)
        Returns the index time analysis phases for the given field value.
        Parameters:
        fieldValue - The field value.
        Returns:
        The index time analysis phases for the given field value.