@Repository public abstract class AbstractElasticRepository extends Object
Constructor and Description |
---|
AbstractElasticRepository() |
Modifier and Type | Method and Description |
---|---|
protected org.elasticsearch.index.query.QueryBuilder |
convertSearchCriteriaToQueryBuilder(SearchCriteria searchCriteria) |
protected <T extends IAppsensorEntity> |
findBySearchCriteria(SearchCriteria searchCriteria,
Class<T> type) |
protected org.elasticsearch.common.xcontent.XContentBuilder |
generateCommonElasticMappingForType(String type) |
protected org.elasticsearch.client.Client |
getClient() |
protected abstract String |
getElasticIndexType() |
protected String |
getIndexName() |
com.fasterxml.jackson.databind.ObjectMapper |
getObjectMapper() |
void |
save(IAppsensorEntity entity) |
void |
shutDownRepository() |
protected String getIndexName()
protected abstract String getElasticIndexType()
protected org.elasticsearch.common.xcontent.XContentBuilder generateCommonElasticMappingForType(String type) throws IOException
protected org.elasticsearch.client.Client getClient()
public com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
protected org.elasticsearch.index.query.QueryBuilder convertSearchCriteriaToQueryBuilder(SearchCriteria searchCriteria)
protected <T extends IAppsensorEntity> List<T> findBySearchCriteria(SearchCriteria searchCriteria, Class<T> type) throws IOException
public void save(IAppsensorEntity entity) throws com.fasterxml.jackson.core.JsonProcessingException
@PreDestroy public void shutDownRepository()
Copyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.