All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ray.streaming.operator.impl.JoinOperator Maven / Gradle / Ivy

package io.ray.streaming.operator.impl;

import io.ray.streaming.api.function.impl.JoinFunction;
import io.ray.streaming.message.Record;
import io.ray.streaming.operator.ChainStrategy;
import io.ray.streaming.operator.OperatorType;
import io.ray.streaming.operator.StreamOperator;
import io.ray.streaming.operator.TwoInputOperator;

/**
 * Join operator
 *
 * @param  Type of the data in the left stream.
 * @param  Type of the data in the right stream.
 * @param  Type of the data in the join key.
 * @param  Type of the data in the joined stream.
 */
public class JoinOperator extends StreamOperator>
    implements TwoInputOperator {

  public JoinOperator() {}

  public JoinOperator(JoinFunction function) {
    super(function);
    setChainStrategy(ChainStrategy.HEAD);
  }

  @Override
  public void processElement(Record record1, Record record2) {}

  @Override
  public OperatorType getOpType() {
    return OperatorType.TWO_INPUT;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy