Class NumericFieldsProcessor
- java.lang.Object
-
- io.wcm.caravan.io.jsontransform.processor.NumericFieldsProcessor
-
- All Implemented Interfaces:
Processor
,Source
,Closeable
,AutoCloseable
,Iterator<JsonElement>
@ProviderType public final class NumericFieldsProcessor extends Object implements Processor
Converts the values of JSON elements identified by key intoBigDecimal
s.
-
-
Constructor Summary
Constructors Constructor Description NumericFieldsProcessor(Source source, Set<String> numericFields)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
JsonElement
next()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<JsonElement>
-
next
public JsonElement next()
- Specified by:
next
in interfaceIterator<JsonElement>
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-