All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebean.meta.MetaQueryPlan Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebean.meta;

import io.ebean.ProfileLocation;

import java.time.Instant;

/**
 * Meta data for captured query plan.
 */
public interface MetaQueryPlan {

  /**
   * Return the bean type for the query.
   */
  Class beanType();

  /**
   * Return the label of the query.
   */
  String label();

  /**
   * Return the profile location for the query.
   */
  ProfileLocation profileLocation();

  /**
   * Return the sql of the query.
   */
  String sql();

  /**
   * Return the hash of the plan.
   */
  String hash();

  /**
   * Return a description of the bind values.
   */
  String bind();

  /**
   * Return the raw plan.
   */
  String plan();

  /**
   * Return the query execution time associated with the bind values capture.
   */
  long queryTimeMicros();

  /**
   * Return the total count of times bind capture has occurred.
   */
  long captureCount();

  /**
   * Return the time taken to capture this plan in microseconds.
   */
  long captureMicros();

  /**
   * Return the instant when the bind values were captured.
   */
  Instant whenCaptured();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy