Class QueryInfo

    • Method Detail

      • queryId

        public final String queryId()

        The unique ID number of this query.

        Returns:
        The unique ID number of this query.
      • queryString

        public final String queryString()

        The query string used in this query.

        Returns:
        The query string used in this query.
      • status

        public final QueryStatus status()

        The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.

        If the service returns an enum value that is not available in the current SDK version, status will return QueryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.
        See Also:
        QueryStatus
      • statusAsString

        public final String statusAsString()

        The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.

        If the service returns an enum value that is not available in the current SDK version, status will return QueryStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

        Returns:
        The status of this query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, and Unknown.
        See Also:
        QueryStatus
      • createTime

        public final Long createTime()

        The date and time that this query was created.

        Returns:
        The date and time that this query was created.
      • logGroupName

        public final String logGroupName()

        The name of the log group scanned by this query.

        Returns:
        The name of the log group scanned by this query.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)