public interface Mapper
| Modifier and Type | Method and Description |
|---|---|
void |
map(java.util.Map<java.lang.String,java.lang.Object> document,
Emitter emitter)
A "map" function called when a document is to be added to a view.
|
void map(java.util.Map<java.lang.String,java.lang.Object> document,
Emitter emitter)
document - The contents of the document being analyzed.emitter - A block to be called to add a key/value pair to the view. Your block can call it zero, one or multiple times.