Example #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);
  }
Example #2
0
  @Override
  public void finish() {
    if (finished) {
      return;
    }

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