Package io.ebean.meta

Class QueryPlanInit

java.lang.Object
io.ebean.meta.QueryPlanInit

public class QueryPlanInit
extends Object
Initiate query plan collection for plans by their hash or all query plans.
  • Constructor Summary

    Constructors
    Constructor Description
    QueryPlanInit()  
  • Method Summary

    Modifier and Type Method Description
    Set<String> getHashes()
    Return the specific hashes that we want to collect query plans on.
    long getThresholdMicros()
    Return the query execution time threshold which must be exceeded to initiate query plan collection.
    boolean includeHash​(String hash)
    Return true if the query plan should be initiated based on it's hash.
    boolean isAll()
    Return true if this initiates bind collection on all query plans.
    void setAll​(boolean all)
    Set to true to initiate bind collection on all query plans.
    void setHashes​(Set<String> hashes)
    Set the specific hashes that we want to collect query plans on.
    void setThresholdMicros​(long thresholdMicros)
    Set the query execution time threshold which must be exceeded to initiate query plan collection.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • isAll

      public boolean isAll()
      Return true if this initiates bind collection on all query plans.
    • setAll

      public void setAll​(boolean all)
      Set to true to initiate bind collection on all query plans.
    • getThresholdMicros

      public long getThresholdMicros()
      Return the query execution time threshold which must be exceeded to initiate query plan collection.
    • setThresholdMicros

      public void setThresholdMicros​(long thresholdMicros)
      Set the query execution time threshold which must be exceeded to initiate query plan collection.
    • includeHash

      public boolean includeHash​(String hash)
      Return true if the query plan should be initiated based on it's hash.
    • getHashes

      public Set<String> getHashes()
      Return the specific hashes that we want to collect query plans on.
    • setHashes

      public void setHashes​(Set<String> hashes)
      Set the specific hashes that we want to collect query plans on.