Class ExplainOptions

java.lang.Object
com.google.cloud.datastore.models.ExplainOptions

@BetaApi public class ExplainOptions extends Object
Model class for ExplainOptions. Contains the explain options for the query. Analyze is set to 'false' by default.
  • Method Details

    • newBuilder

      public static ExplainOptions.Builder newBuilder()
    • shouldAnalyze

      public boolean shouldAnalyze()
      Returns whether analyze is set to true or false. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toPb

      @InternalApi public ExplainOptions toPb()