public class IndexHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
IndexHelper.Builder |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.client.Client |
client() |
long |
count() |
void |
createIndex() |
void |
deleteIndex() |
String |
getIndexName() |
IndexHelper |
mapping(String type,
Supplier<String> mapping) |
static IndexHelper |
of(org.slf4j.Logger log,
ESClientFactory client,
String indexName,
String objectType) |
static IndexHelper |
of(org.slf4j.Logger log,
ESClientFactory client,
Supplier<String> indexName,
String objectType) |
void |
prepareIndex() |
org.elasticsearch.action.admin.indices.refresh.RefreshResponse |
refresh() |
void |
setIndexName(String indexName) |
public static IndexHelper of(org.slf4j.Logger log, ESClientFactory client, String indexName, String objectType)
public static IndexHelper of(org.slf4j.Logger log, ESClientFactory client, Supplier<String> indexName, String objectType)
public IndexHelper mapping(String type, Supplier<String> mapping)
public org.elasticsearch.client.Client client()
public void createIndex()
public void prepareIndex()
public void deleteIndex()
public org.elasticsearch.action.admin.indices.refresh.RefreshResponse refresh()
public long count()
public void setIndexName(String indexName)
public String getIndexName()
Copyright © 2019. All rights reserved.