Package com.github.euler.elasticsearch
Class ElasticsearchFragmentSink
- java.lang.Object
-
- com.github.euler.elasticsearch.ElasticsearchMetadataSink
-
- com.github.euler.elasticsearch.ElasticsearchFragmentSink
-
- All Implemented Interfaces:
FragmentBatchSink,MetadataBatchSink
public class ElasticsearchFragmentSink extends ElasticsearchMetadataSink implements FragmentBatchSink
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchFragmentSink(org.elasticsearch.client.RestHighLevelClient client, String index, FlushConfig flushConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Object>buildSource(URI uri, ProcessingContext ctx)SinkResponsestoreFragment(String parentId, int fragIndex, String fragment)-
Methods inherited from class com.github.euler.elasticsearch.ElasticsearchMetadataSink
add, finish, flush, flush, generateId, getIndex, store
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.euler.tika.MetadataBatchSink
finish, flush, store
-
-
-
-
Constructor Detail
-
ElasticsearchFragmentSink
public ElasticsearchFragmentSink(org.elasticsearch.client.RestHighLevelClient client, String index, FlushConfig flushConfig)
-
-
Method Detail
-
buildSource
protected Map<String,Object> buildSource(URI uri, ProcessingContext ctx)
- Overrides:
buildSourcein classElasticsearchMetadataSink
-
storeFragment
public SinkResponse storeFragment(String parentId, int fragIndex, String fragment)
- Specified by:
storeFragmentin interfaceFragmentBatchSink
-
-