Package com.github.euler.elasticsearch
Class ElasticsearchSource
- java.lang.Object
-
- com.github.euler.core.AbstractPausableSource
-
- com.github.euler.elasticsearch.ElasticsearchSource
-
- All Implemented Interfaces:
PausableSource,Source,org.elasticsearch.common.xcontent.DeprecationHandler
public class ElasticsearchSource extends AbstractPausableSource implements org.elasticsearch.common.xcontent.DeprecationHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedElasticsearchSource(org.elasticsearch.client.RestHighLevelClient client, String query, int size, String scrollKeepAlive)protectedElasticsearchSource(org.elasticsearch.client.RestHighLevelClient client, String query, int size, String scrollKeepAlive, String[] sourceIncludes, String[] sourceExcludes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoScan(SourceListener listener)voidprepareScan(URI uri)voidusedDeprecatedField(String parserName, Supplier<org.elasticsearch.common.xcontent.XContentLocation> location, String usedName)voidusedDeprecatedField(String parserName, Supplier<org.elasticsearch.common.xcontent.XContentLocation> location, String usedName, String replacedWith)voidusedDeprecatedName(String parserName, Supplier<org.elasticsearch.common.xcontent.XContentLocation> location, String usedName, String modernName)-
Methods inherited from class com.github.euler.core.AbstractPausableSource
scan
-
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.core.PausableSource
finishScan
-
-
-
-
Method Detail
-
prepareScan
public void prepareScan(URI uri) throws IOException
- Specified by:
prepareScanin interfacePausableSource- Throws:
IOException
-
doScan
public boolean doScan(SourceListener listener) throws IOException
- Specified by:
doScanin interfacePausableSource- Throws:
IOException
-
usedDeprecatedName
public void usedDeprecatedName(String parserName, Supplier<org.elasticsearch.common.xcontent.XContentLocation> location, String usedName, String modernName)
- Specified by:
usedDeprecatedNamein interfaceorg.elasticsearch.common.xcontent.DeprecationHandler
-
usedDeprecatedField
public void usedDeprecatedField(String parserName, Supplier<org.elasticsearch.common.xcontent.XContentLocation> location, String usedName, String replacedWith)
- Specified by:
usedDeprecatedFieldin interfaceorg.elasticsearch.common.xcontent.DeprecationHandler
-
-