Java Code Examples for io.airlift.stats.CounterStat#merge()

The following examples show how to use io.airlift.stats.CounterStat#merge() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TaskContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getProcessedInputDataSize()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isInputPipeline()) {
            stat.merge(pipelineContext.getProcessedInputDataSize());
        }
    }
    return stat;
}
 
Example 2
Source File: TaskContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getInputPositions()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isInputPipeline()) {
            stat.merge(pipelineContext.getInputPositions());
        }
    }
    return stat;
}
 
Example 3
Source File: TaskContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getOutputDataSize()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isOutputPipeline()) {
            stat.merge(pipelineContext.getOutputDataSize());
        }
    }
    return stat;
}
 
Example 4
Source File: TaskContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getOutputPositions()
{
    CounterStat stat = new CounterStat();
    for (PipelineContext pipelineContext : pipelineContexts) {
        if (pipelineContext.isOutputPipeline()) {
            stat.merge(pipelineContext.getOutputPositions());
        }
    }
    return stat;
}
 
Example 5
Source File: PipelineContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getProcessedInputDataSize()
{
    CounterStat stat = new CounterStat();
    stat.merge(processedInputDataSize);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getInputDataSize());
    }
    return stat;
}
 
Example 6
Source File: PipelineContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getInputPositions()
{
    CounterStat stat = new CounterStat();
    stat.merge(processedInputPositions);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getInputPositions());
    }
    return stat;
}
 
Example 7
Source File: PipelineContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getOutputDataSize()
{
    CounterStat stat = new CounterStat();
    stat.merge(outputDataSize);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getOutputDataSize());
    }
    return stat;
}
 
Example 8
Source File: PipelineContext.java    From presto with Apache License 2.0 5 votes vote down vote up
public CounterStat getOutputPositions()
{
    CounterStat stat = new CounterStat();
    stat.merge(outputPositions);
    for (DriverContext driver : drivers) {
        stat.merge(driver.getOutputPositions());
    }
    return stat;
}