Examples of FetchStats


Examples of org.archive.modules.fetcher.FetchStats

            if (LOGGER.isLoggable(Level.FINE)) {
                LOGGER.fine(curi.toString() + " null stats category: " + CAT);
            }
            return false;
        }
        FetchStats substats = hasStats.getSubstats();
        long[] actuals = new long[] {
                substats.getFetchSuccesses(),
                substats.getSuccessBytes()/1024,
                substats.getFetchResponses(),
                substats.getTotalBytes()/1024,
        };
        for(int q=SUCCESSES; q<=RESPONSE_KB; q++) {
            String key = keys[CAT][q];
            if (applyQuota(curi, key, actuals[q])) {
                return true;
View Full Code Here

Examples of org.hibernate.loader.plan.exec.internal.FetchStats

    queryProcessor.processQuerySpaceJoins( getRootQuerySpace(), select );

    // Next, we process the Returns and Fetches building the SELECT clause and at the same time building
    // Readers for reading the described results out of a SQL ResultSet

    FetchStats fetchStats = null;
    if ( FetchSource.class.isInstance( rootReturn ) ) {
      fetchStats = queryProcessor.processFetches(
          (FetchSource) rootReturn,
          select,
          getReaderCollector()
      );
    }
    else if ( CollectionReturn.class.isInstance( rootReturn ) ) {
      final CollectionReturn collectionReturn = (CollectionReturn) rootReturn;
      if ( collectionReturn.getElementGraph() != null ) {
        fetchStats = queryProcessor.processFetches(
            collectionReturn.getElementGraph(),
            select,
            getReaderCollector()
        );
      }
      // TODO: what about index???
    }

    LoadPlanTreePrinter.INSTANCE.logTree( loadPlan, queryProcessor.getAliasResolutionContext() );

    this.sqlStatement = select.toStatementString();
    this.resultSetProcessor = new ResultSetProcessorImpl(
        loadPlan,
        getReaderCollector().buildRowReader(),
        fetchStats != null && fetchStats.hasSubselectFetches()
    );
  }
View Full Code Here

Examples of org.hibernate.loader.plan.exec.internal.FetchStats

    queryProcessor.processQuerySpaceJoins( getRootQuerySpace(), select );

    // Next, we process the Returns and Fetches building the SELECT clause and at the same time building
    // Readers for reading the described results out of a SQL ResultSet

    FetchStats fetchStats = null;
    if ( FetchSource.class.isInstance( rootReturn ) ) {
      fetchStats = queryProcessor.processFetches(
          (FetchSource) rootReturn,
          select,
          getReaderCollector()
      );
    }
    else if ( CollectionReturn.class.isInstance( rootReturn ) ) {
      final CollectionReturn collectionReturn = (CollectionReturn) rootReturn;
      if ( collectionReturn.getElementGraph() != null ) {
        fetchStats = queryProcessor.processFetches(
            collectionReturn.getElementGraph(),
            select,
            getReaderCollector()
        );
      }
      // TODO: what about index???
    }

    LoadPlanTreePrinter.INSTANCE.logTree( loadPlan, queryProcessor.getAliasResolutionContext() );

    this.sqlStatement = select.toStatementString();
    this.resultSetProcessor = new ResultSetProcessorImpl(
        loadPlan,
        getReaderCollector().buildRowReader(),
        fetchStats != null && fetchStats.hasSubselectFetches()
    );
  }
View Full Code Here

Examples of org.hibernate.loader.plan.exec.internal.LoadQueryBuilderHelper.FetchStats

                Collections.<EntityReferenceReader>emptyList()
            )
        )
    );

    FetchStats fetchStats = LoadQueryBuilderHelper.applyJoinFetches(
        select,
        factory,
        rootReturn,
        buildingParameters,
        aliasResolutionContext,
        readerCollector
    );

    this.sqlStatement = select.toStatementString();
    this.resultSetProcessor = new ResultSetProcessorImpl(
        loadPlan,
        readerCollector.buildRowReader(),
        fetchStats.hasSubselectFetches()
    );
  }
View Full Code Here

Examples of org.hibernate.loader.plan2.exec.internal.FetchStats

    );

    // Next, we process the Returns and Fetches building the SELECT clause and at the same time building
    // Readers for reading the described results out of a SQL ResultSet

    final FetchStats fetchStats = processReturnAndFetches(
        rootReturn,
        select,
        helper,
        readerCollector,
        aliasResolutionContext
    );

    LoadPlanTreePrinter.INSTANCE.logTree( loadPlan, aliasResolutionContext );

    this.sqlStatement = select.toStatementString();
    this.resultSetProcessor = new ResultSetProcessorImpl(
        loadPlan,
        readerCollector.buildRowReader(),
        fetchStats.hasSubselectFetches()
    );
  }
View Full Code Here

Examples of org.hibernate.loader.plan2.exec.internal.FetchStats

            entityReferenceAliases.getTableAlias(),
            entityReferenceAliases.getColumnAliases().getSuffix()
        )
    );

    final FetchStats fetchStats = helper.processFetches(
        rootReturn,
        select,
        readerCollector
    );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.