Class XContentElasticsearchExtension
java.lang.Object
org.elasticsearch.common.xcontent.XContentElasticsearchExtension
- All Implemented Interfaces:
org.elasticsearch.common.xcontent.XContentBuilderExtension
public class XContentElasticsearchExtension
extends Object
implements org.elasticsearch.common.xcontent.XContentBuilderExtension
SPI extensions for Elasticsearch-specific classes (like the Lucene or Joda
dependency classes) that need to be encoded by
XContentBuilder
in a
specific way.-
Field Summary
Modifier and TypeFieldDescriptionstatic org.joda.time.format.DateTimeFormatter
static DateFormatter
static DateFormatter
static DateFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Field Details
-
DEFAULT_DATE_PRINTER
public static final org.joda.time.format.DateTimeFormatter DEFAULT_DATE_PRINTER -
DEFAULT_FORMATTER
-
LOCAL_TIME_FORMATTER
-
OFFSET_TIME_FORMATTER
-
-
Constructor Details
-
XContentElasticsearchExtension
public XContentElasticsearchExtension()
-
-
Method Details
-
getXContentWriters
- Specified by:
getXContentWriters
in interfaceorg.elasticsearch.common.xcontent.XContentBuilderExtension
-
getXContentHumanReadableTransformers
public Map<Class<?>,org.elasticsearch.common.xcontent.XContentBuilder.HumanReadableTransformer> getXContentHumanReadableTransformers()- Specified by:
getXContentHumanReadableTransformers
in interfaceorg.elasticsearch.common.xcontent.XContentBuilderExtension
-
getDateTransformers
- Specified by:
getDateTransformers
in interfaceorg.elasticsearch.common.xcontent.XContentBuilderExtension
-