Class InternalProfiledPlan

java.lang.Object
org.neo4j.driver.internal.summary.InternalPlan<ProfiledPlan>
org.neo4j.driver.internal.summary.InternalProfiledPlan
All Implemented Interfaces:
Plan, ProfiledPlan

public class InternalProfiledPlan extends InternalPlan<ProfiledPlan> implements ProfiledPlan
  • Field Details

    • PROFILED_PLAN_FROM_VALUE

      public static final Function<Value,ProfiledPlan> PROFILED_PLAN_FROM_VALUE
      Builds a regular plan without profiling information - eg. a plan that came as a result of an `EXPLAIN` query
  • Constructor Details

    • InternalProfiledPlan

      protected InternalProfiledPlan(String operatorType, Map<String,Value> arguments, List<String> identifiers, List<ProfiledPlan> children, long dbHits, long records, long pageCacheHits, long pageCacheMisses, double pageCacheHitRatio, long time)
  • Method Details

    • dbHits

      public long dbHits()
      Specified by:
      dbHits in interface ProfiledPlan
      Returns:
      the number of times this part of the plan touched the underlying data stores
    • records

      public long records()
      Specified by:
      records in interface ProfiledPlan
      Returns:
      the number of records this part of the plan produced
    • hasPageCacheStats

      public boolean hasPageCacheStats()
      Specified by:
      hasPageCacheStats in interface ProfiledPlan
      Returns:
      if the number page cache hits and misses and the ratio was recorded.
    • pageCacheHits

      public long pageCacheHits()
      Specified by:
      pageCacheHits in interface ProfiledPlan
      Returns:
      number of page cache hits caused by executing the associated execution step
    • pageCacheMisses

      public long pageCacheMisses()
      Specified by:
      pageCacheMisses in interface ProfiledPlan
      Returns:
      number of page cache misses caused by executing the associated execution step
    • pageCacheHitRatio

      public double pageCacheHitRatio()
      Specified by:
      pageCacheHitRatio in interface ProfiledPlan
      Returns:
      the ratio of page cache hits to total number of lookups or 0 if no data is available
    • time

      public long time()
      Specified by:
      time in interface ProfiledPlan
      Returns:
      amount of time spent in the associated execution step.