Interface QueryResultVersion

All Superinterfaces:
Comparable<QueryResultVersion>, Serializable

@NotFinalAPI public interface QueryResultVersion extends Serializable, Comparable<QueryResultVersion>
Represents a version of a query result.
  • Method Details

    • asString

      String asString()
      Returns:
      the string representation of this version.
    • compareTo

      int compareTo(QueryResultVersion queryResultVersion)
      Compares to another query result version (following Comparable rules).
      Specified by:
      compareTo in interface Comparable<QueryResultVersion>
      Parameters:
      queryResultVersion - the query result version.
      Returns:
      a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.
    • compareTo

      int compareTo(String queryResultVersionAsString)
      Compares to another query result version string (following Comparable rules).
      Parameters:
      queryResultVersionAsString - the query result version asString() result.
      Returns:
      a negative integer, zero, or a positive integer as this version is less than, equal to, or greater than the specified version.
      Throws:
      IllegalArgumentException - if the given string cannot be parsed to a version object.
    • queryVersion

      QueryVersion queryVersion()
      Extracts the matching QueryVersion object for comparison with queries. In essence, if no change is done to a query before execution is performed, the QueryVersion from this method and the QueryVersion from the Query.queryVersion() will be equal.
      Returns:
      the matching QueryVersion object.
      See Also: