Class XContentElasticsearchExtension
- java.lang.Object
-
- org.elasticsearch.common.xcontent.XContentElasticsearchExtension
-
- All Implemented Interfaces:
XContentBuilderExtension
public class XContentElasticsearchExtension extends java.lang.Object implements XContentBuilderExtension
SPI extensions for Elasticsearch-specific classes (like the Lucene or Joda dependency classes) that need to be encoded byXContentBuilderin a specific way.
-
-
Field Summary
Fields Modifier and Type Field Description static org.joda.time.format.DateTimeFormatterDEFAULT_DATE_PRINTERstatic DateFormatterDEFAULT_FORMATTERstatic DateFormatterLOCAL_TIME_FORMATTERstatic DateFormatterOFFSET_TIME_FORMATTER
-
Constructor Summary
Constructors Constructor Description XContentElasticsearchExtension()
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.Object,java.lang.Object>>getDateTransformers()java.util.Map<java.lang.Class<?>,XContentBuilder.HumanReadableTransformer>getXContentHumanReadableTransformers()java.util.Map<java.lang.Class<?>,XContentBuilder.Writer>getXContentWriters()
-
-
-
Field Detail
-
DEFAULT_DATE_PRINTER
public static final org.joda.time.format.DateTimeFormatter DEFAULT_DATE_PRINTER
-
DEFAULT_FORMATTER
public static final DateFormatter DEFAULT_FORMATTER
-
LOCAL_TIME_FORMATTER
public static final DateFormatter LOCAL_TIME_FORMATTER
-
OFFSET_TIME_FORMATTER
public static final DateFormatter OFFSET_TIME_FORMATTER
-
-
Method Detail
-
getXContentWriters
public java.util.Map<java.lang.Class<?>,XContentBuilder.Writer> getXContentWriters()
- Specified by:
getXContentWritersin interfaceXContentBuilderExtension
-
getXContentHumanReadableTransformers
public java.util.Map<java.lang.Class<?>,XContentBuilder.HumanReadableTransformer> getXContentHumanReadableTransformers()
- Specified by:
getXContentHumanReadableTransformersin interfaceXContentBuilderExtension
-
getDateTransformers
public java.util.Map<java.lang.Class<?>,java.util.function.Function<java.lang.Object,java.lang.Object>> getDateTransformers()
- Specified by:
getDateTransformersin interfaceXContentBuilderExtension
-
-