org.kitesdk.morphline.stdlib
Class AbstractFieldTransformCommand

java.lang.Object
  extended by org.kitesdk.morphline.base.AbstractCommand
      extended by org.kitesdk.morphline.stdlib.AbstractFieldTransformCommand
All Implemented Interfaces:
Command

public abstract class AbstractFieldTransformCommand
extends AbstractCommand

Base class for convenient implementation of commands that do in-place updates on a field.


Field Summary
 
Fields inherited from class org.kitesdk.morphline.base.AbstractCommand
LOG
 
Constructor Summary
protected AbstractFieldTransformCommand(CommandBuilder builder, com.typesafe.config.Config config, Command parent, Command child, MorphlineContext context)
           
protected AbstractFieldTransformCommand(com.typesafe.config.Config config, Command parent, Command child, MorphlineContext context)
          Deprecated. 
 
Method Summary
protected  boolean doProcess(Record record)
          Processes the given record on the data plane of this command.
protected abstract  Object transformFieldValue(Object value)
          Transforms the given input value to some output value
 
Methods inherited from class org.kitesdk.morphline.base.AbstractCommand
buildCommand, buildCommandChain, doNotify, getChild, getConfig, getConfigs, getContext, getCounter, getHistogram, getMeter, getParent, getTimer, isMeasuringMetrics, notify, process, validateArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFieldTransformCommand

protected AbstractFieldTransformCommand(CommandBuilder builder,
                                        com.typesafe.config.Config config,
                                        Command parent,
                                        Command child,
                                        MorphlineContext context)

AbstractFieldTransformCommand

@Deprecated
protected AbstractFieldTransformCommand(com.typesafe.config.Config config,
                                                   Command parent,
                                                   Command child,
                                                   MorphlineContext context)
Deprecated. 

Deprecated; Will be removed in the next release

Method Detail

doProcess

protected final boolean doProcess(Record record)
Description copied from class: AbstractCommand
Processes the given record on the data plane of this command.

Overrides:
doProcess in class AbstractCommand
Returns:
true to indicate that processing shall continue, false to indicate that backtracking shall be done

transformFieldValue

protected abstract Object transformFieldValue(Object value)
Transforms the given input value to some output value



Copyright © 2013–2014. All rights reserved.