Class SetSequenceNumberField
java.lang.Object
com.northconcepts.datapipeline.transform.Transformer
com.northconcepts.datapipeline.transform.SetSequenceNumberField
Adds a sequence (auto increment) field with the specified increment (step).
See
FieldPath for supported field name expressions.-
Constructor Summary
ConstructorsConstructorDescriptionSetSequenceNumberField(String name, double start, double step) Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value.SetSequenceNumberField(String name, double start, double step, boolean overwrite) Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number.SetSequenceNumberField(String name, long start, long step) Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value.SetSequenceNumberField(String name, long start, long step, boolean overwrite) Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number.SetSequenceNumberField(String name, BigDecimal start, BigDecimal step) Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value.SetSequenceNumberField(String name, BigDecimal start, BigDecimal step, boolean overwrite) Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number.SetSequenceNumberField(String name, BigInteger start, BigInteger step) Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value.SetSequenceNumberField(String name, BigInteger start, BigInteger step, boolean overwrite) Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number. -
Method Summary
Methods inherited from class com.northconcepts.datapipeline.transform.Transformer
addExceptionProperties, close, geEndpoint, getEndpoint, getReader, getWriter, of, open, setWriter
-
Constructor Details
-
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep, overwriting any existing value. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number. -
SetSequenceNumberField
Creates a transformer that numbers records fromstartin steps ofstep; whenoverwriteis false, records that already have the field are skipped without using a number.
-
-
Method Details
-
getName
-
getStart
-
getStep
-
getOverwrite
public boolean getOverwrite() -
transform
Description copied from class:TransformerApplies this transformer to a record on its way through aTransformingReaderorTransformingWriter.Contract for subclasses (see also
docs/authoring/Transformer.md):- Mutate
recordin place as needed. - Return
trueto keep the record in the pipeline. - Return
falseto drop the record (the host routes it to a discard writer if one is configured, otherwise it disappears). - Throw to fail (or route to a discard writer, depending on host configuration).
- Do not call
incrementRecordCount()on the host endpoint; the host handles it.
- Specified by:
transformin classTransformer- Throws:
Throwable
- Mutate
-
toString
-