public class PlainTextEntityProcessor extends EntityProcessorBase
An implementation of EntityProcessor
which reads data from a url/file and give out a row which contains one String
value. The name of the field is 'plainText'.
Modifier and Type | Field and Description |
---|---|
static String |
PLAIN_TEXT |
ABORT, cacheSupport, context, CONTINUE, entityName, isFirstInit, ON_ERROR, onError, query, rowIterator, SKIP, TRANSFORM_ROW, TRANSFORMER
Constructor and Description |
---|
PlainTextEntityProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
init(Context context)
This method is called when it starts processing an entity.
|
Map<String,Object> |
nextRow()
For a simple implementation, this is the only method that the sub-class should implement.
|
destroy, firstInit, getNext, initCache, nextDeletedRowKey, nextModifiedParentRowKey, nextModifiedRowKey
close, postTransform
public static final String PLAIN_TEXT
public void init(Context context)
EntityProcessor
init
in class EntityProcessorBase
context
- The current contextpublic Map<String,Object> nextRow()
EntityProcessorBase
nextRow
in class EntityProcessorBase
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.