Class GroupElasticsearchSink.Processor
- java.lang.Object
-
- io.annot8.common.components.AbstractComponent
-
- io.annot8.common.components.AbstractProcessor
-
- io.annot8.components.elasticsearch.processors.AbstractElasticsearchSink
-
- io.annot8.components.elasticsearch.processors.GroupElasticsearchSink.Processor
-
- All Implemented Interfaces:
io.annot8.api.components.Annot8Component,io.annot8.api.components.Processor,AutoCloseable
- Enclosing class:
- GroupElasticsearchSink
public static class GroupElasticsearchSink.Processor extends AbstractElasticsearchSink
-
-
Field Summary
-
Fields inherited from class io.annot8.components.elasticsearch.processors.AbstractElasticsearchSink
client, forceString, index
-
-
Constructor Summary
Constructors Constructor Description Processor(ElasticsearchSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<Map<String,Object>>getMapping()protected List<org.elasticsearch.action.index.IndexRequest>itemToIndexRequests(io.annot8.api.data.Item item)-
Methods inherited from class io.annot8.components.elasticsearch.processors.AbstractElasticsearchSink
close, process
-
-
-
-
Constructor Detail
-
Processor
public Processor(ElasticsearchSettings settings)
-
-
Method Detail
-
itemToIndexRequests
protected List<org.elasticsearch.action.index.IndexRequest> itemToIndexRequests(io.annot8.api.data.Item item)
- Specified by:
itemToIndexRequestsin classAbstractElasticsearchSink
-
getMapping
protected Optional<Map<String,Object>> getMapping()
- Overrides:
getMappingin classAbstractElasticsearchSink
-
-