public class SpringEsDataLoader extends java.lang.Object implements EsDataLoader
ElasticsearchOperations
to load data into Elasticsearch.Constructor and Description |
---|
SpringEsDataLoader(org.springframework.data.elasticsearch.core.ElasticsearchOperations esOperations)
.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.Class<?> esEntityClass)
Deletes data from Elasticsearch using provided class to retrieve related index.
|
void |
load(IndexData d)
Loads given data into Elasticsearch.
|
@Autowired public SpringEsDataLoader(org.springframework.data.elasticsearch.core.ElasticsearchOperations esOperations)
ElasticsearchOperations
to load data into ElasticsearchesOperations
- the ElasticsearchOperations
public void delete(java.lang.Class<?> esEntityClass)
delete
in interface EsDataLoader
esEntityClass
- the data to loadpublic void load(IndexData d)
load
in interface EsDataLoader
d
- the data to load