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, nextModifiedRowKeyclose, postTransformpublic static final String PLAIN_TEXT
public void init(Context context)
EntityProcessorinit in class EntityProcessorBasecontext - The current contextpublic Map<String,Object> nextRow()
EntityProcessorBasenextRow in class EntityProcessorBaseCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.