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

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

package io.ray.streaming.operator.impl;

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

public class MapOperator extends StreamOperator>
    implements OneInputOperator {

  public MapOperator(MapFunction mapFunction) {
    super(mapFunction);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy