Package com.liveramp.cascading_ext.assembly

Source Code of com.liveramp.cascading_ext.assembly.Increment

package com.liveramp.cascading_ext.assembly;

import cascading.pipe.Each;
import cascading.pipe.Pipe;
import cascading.pipe.SubAssembly;
import com.liveramp.cascading_ext.operation.IncrementCounter;

public class Increment extends SubAssembly {

  public Increment(Pipe pipe, String counterName) {
    setTails(new Each(pipe, new IncrementCounter(counterName)));
  }

  public Increment(Pipe pipe, String counterGroup, String counterName) {
    setTails(new Each(pipe, new IncrementCounter(counterGroup, counterName)));
  }

  public Increment(Pipe pipe, Enum counter) {
    setTails(new Each(pipe, new IncrementCounter(counter)));
  }
}
TOP

Related Classes of com.liveramp.cascading_ext.assembly.Increment

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.