public class ESTimeBasedEvent extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
dateFormatPattern |
protected Map<String,Object> |
fields |
protected String |
timestamp |
Constructor and Description |
---|
ESTimeBasedEvent() |
Modifier and Type | Method and Description |
---|---|
String |
calculateDayIndexSuffix() |
String |
calculateHourIndexSuffix() |
String |
calculateMinuteIndexSuffix() |
String |
calculateMonthIndexSuffix() |
String |
calculateYearIndexSuffix() |
static ESTimeBasedEvent |
createEventFromJson(String jsonString) |
Map<String,Object> |
getFields() |
protected String |
getFormattedString(String template,
Object... params) |
String |
getTimestamp() |
void |
setFields(Map<String,Object> fields) |
void |
setTimestamp(String timestamp) |
protected static String dateFormatPattern
protected String timestamp
public static ESTimeBasedEvent createEventFromJson(String jsonString) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
public String calculateYearIndexSuffix()
public String calculateMonthIndexSuffix()
public String calculateDayIndexSuffix()
public String calculateHourIndexSuffix()
public String calculateMinuteIndexSuffix()
public String getTimestamp()
public void setTimestamp(String timestamp)
Copyright © 2017. All rights reserved.