public class ElasticSearchUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ElasticSearchValueTypeMapper |
valueTypeMapper |
| Constructor and Description |
|---|
ElasticSearchUtils(ElasticSearchValueTypeMapper valueTypeMapper) |
| Modifier and Type | Method and Description |
|---|---|
Date[] |
calculateDateLimits(ElasticSearchClient client,
DataSetMetadata metadata,
String dateColumnId,
Query query)
Obtain the minimum date and maximum date values for the given column with identifier
dateColumnId. |
String |
transformPattern(String pattern)
ELS wildcard query characters replacement for Dashbuilder the LIKE core function ones:
-------------------------------------------------------
| ELS | Dashbuilder | Description |
| ?
|
protected ElasticSearchValueTypeMapper valueTypeMapper
public ElasticSearchUtils(ElasticSearchValueTypeMapper valueTypeMapper)
public Date[] calculateDateLimits(ElasticSearchClient client, DataSetMetadata metadata, String dateColumnId, Query query) throws ElasticSearchClientGenericException
Obtain the minimum date and maximum date values for the given column with identifier dateColumnId.
client - The client for performing the query to ELSmetadata - The data set metadatadateColumnId - The column identifier for the date type columnquery - The query model, if any, for filtering the resultsElasticSearchClientGenericExceptionpublic String transformPattern(String pattern)
Copyright © 2017–2021 JBoss by Red Hat. All rights reserved.