001package io.ebean.meta; 002 003import io.ebean.bean.ObjectGraphNode; 004 005/** 006 * Statistics for query execution based on object graph origin and paths. 007 * <p> 008 * These statistics can be used to identify origin queries that result in lots 009 * of lazy loading. 010 * </p> 011 */ 012public interface MetaOrmQueryNode { 013 014 /** 015 * Return the ObjectGraphNode which has the origin point and relative path. 016 */ 017 ObjectGraphNode getNode(); 018 019 /** 020 * Return the startTime of statistics collection. 021 */ 022 long getStartTime(); 023 024 /** 025 * Return the total count of queries executed for this node. 026 */ 027 long getCount(); 028 029 /** 030 * Return the total time of queries executed for this node. 031 */ 032 long getTotalTime(); 033 034 /** 035 * Return the total beans loaded by queries for this node. 036 */ 037 long getTotalBeans(); 038 039}