public class MailEntityProcessor extends EntityProcessorBase
EntityProcessor
instance which can
index emails along with their attachments from POP3 or IMAP sources. Refer to
http://wiki.apache.org/solr/DataImportHandler
for more details. This API is experimental and subject to changeModifier and Type | Class and Description |
---|---|
static interface |
MailEntityProcessor.CustomFilter |
ABORT, cacheSupport, context, CONTINUE, entityName, isFirstInit, ON_ERROR, onError, query, rowIterator, SKIP, SKIP_DOC, TRANSFORM_ROW, TRANSFORMER
Constructor and Description |
---|
MailEntityProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addPartToDocument(javax.mail.Part part,
Map<String,Object> row,
boolean outerMost) |
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 void init(Context context)
EntityProcessor
init
in class EntityProcessorBase
context
- The current contextpublic Map<String,Object> nextRow()
EntityProcessorBase
nextRow
in class EntityProcessorBase