public abstract class IndexMapping extends Object implements IndexMappingTemplate
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_MESSAGE |
| Constructor and Description |
|---|
IndexMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
analyzerKeyword() |
protected String |
dateFormat() |
protected List<Map<String,Map<String,Object>>> |
dynamicTemplate() |
protected Map<String,Map<String,Object>> |
fieldProperties(String analyzer) |
protected Map<String,Object> |
mapping(String analyzer) |
protected Map<String,Object> |
messageMapping(String analyzer) |
Map<String,Object> |
messageTemplate(String template,
String analyzer,
int order) |
Map<String,Object> |
toTemplate(IndexSetConfig indexSetConfig,
String indexPattern,
int order)
Returns the index template as a map.
|
protected Map<String,Object> |
typeLong() |
protected Map<String,Object> |
typeTimeWithMillis() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoTemplatepublic static final String TYPE_MESSAGE
public Map<String,Object> toTemplate(IndexSetConfig indexSetConfig, String indexPattern, int order)
IndexMappingTemplatetoTemplate in interface IndexMappingTemplateindexSetConfig - the index set configurationindexPattern - the index pattern the returned template should be applied toorder - the order value of the index templatepublic Map<String,Object> messageTemplate(String template, String analyzer, int order)
protected String dateFormat()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.