Enum ReadContext.QueryAnalyzeMode

java.lang.Object
java.lang.Enum<ReadContext.QueryAnalyzeMode>
com.google.cloud.spanner.ReadContext.QueryAnalyzeMode
All Implemented Interfaces:
Serializable, Comparable<ReadContext.QueryAnalyzeMode>
Enclosing interface:
ReadContext

public static enum ReadContext.QueryAnalyzeMode extends Enum<ReadContext.QueryAnalyzeMode>
Used to specify the mode in which the query should be analyzed by ReadContext.analyzeQuery(Statement,QueryAnalyzeMode).
  • Enum Constant Details

    • PLAN

      public static final ReadContext.QueryAnalyzeMode PLAN
      Retrieves only the query plan information. No result data is returned.
    • PROFILE

      public static final ReadContext.QueryAnalyzeMode PROFILE
      Retrieves both query plan and query execution statistics along with the result data.
  • Method Details

    • values

      public static ReadContext.QueryAnalyzeMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ReadContext.QueryAnalyzeMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null