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);
 }