Пример #1
0
  public View makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) {
    IStreamSortRankRandomAccess sortedRandomAccess =
        ViewServiceHelper.getOptPreviousExprSortedRankedAccess(agentInstanceViewFactoryContext);

    boolean useCollatorSort = false;
    if (agentInstanceViewFactoryContext
            .getAgentInstanceContext()
            .getStatementContext()
            .getConfigSnapshot()
        != null) {
      useCollatorSort =
          agentInstanceViewFactoryContext
              .getAgentInstanceContext()
              .getStatementContext()
              .getConfigSnapshot()
              .getEngineDefaults()
              .getLanguage()
              .isSortUsingCollator();
    }

    ExprEvaluator[] childEvals = ExprNodeUtility.getEvaluators(sortCriteriaExpressions);
    return new SortWindowView(
        this,
        sortCriteriaExpressions,
        childEvals,
        isDescendingValues,
        sortWindowSize,
        sortedRandomAccess,
        useCollatorSort,
        agentInstanceViewFactoryContext);
  }
Пример #2
0
 public MyFlushedSimpleView(AgentInstanceViewFactoryChainContext agentInstanceContext) {
   agentInstanceContext.addTerminationCallback(this);
   events = new ArrayList<EventBean>();
 }
Пример #3
0
 public View makeView(AgentInstanceViewFactoryChainContext agentInstanceViewFactoryContext) {
   return new SizeView(
       agentInstanceViewFactoryContext.getAgentInstanceContext(), eventType, additionalProps);
 }