Ejemplo n.º 1
0
  @Override
  public void addInput(Page page) {
    checkNotNull(page, "page is null");
    checkState(!isFinished(), "Operator is already finished");

    Block sourceBlock = page.getBlock(setChannel);
    channelSetBuilder.addBlock(sourceBlock);
  }
Ejemplo n.º 2
0
  @Override
  public void finish() {
    if (finished) {
      return;
    }

    ChannelSet channelSet = channelSetBuilder.build();
    setSupplier.setChannelSet(channelSet);
    operatorContext.recordGeneratedOutput(channelSet.getEstimatedSize(), channelSet.size());
    finished = true;
  }