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

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

package io.ray.streaming.operator.impl;

import io.ray.streaming.api.function.impl.SinkFunction;
import io.ray.streaming.message.Record;
import io.ray.streaming.operator.OneInputOperator;
import io.ray.streaming.operator.StreamOperator;

public class SinkOperator extends StreamOperator>
    implements OneInputOperator {

  public SinkOperator(SinkFunction sinkFunction) {
    super(sinkFunction);
  }

  @Override
  public void processElement(Record record) throws Exception {
    this.function.sink(record.getValue());
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy