All Implemented Interfaces:

public class TypeMapping
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static TypeMapping of​(java.util.function.Function<TypeMapping.Builder,​ObjectBuilder<TypeMapping>> fn)
    • allField

      @Nullable public final AllField allField()
      API name: all_field
    • dateDetection

      @Nullable public final java.lang.Boolean dateDetection()
      API name: date_detection
    • dynamic

      @Nullable public final DynamicMapping dynamic()
      API name: dynamic
    • dynamicDateFormats

      public final java.util.List<java.lang.String> dynamicDateFormats()
      API name: dynamic_date_formats
    • dynamicTemplates

      public final java.util.List<java.util.Map<java.lang.String,​DynamicTemplate>> dynamicTemplates()
      API name: dynamic_templates
    • fieldNames

      @Nullable public final FieldNamesField fieldNames()
      API name: _field_names
    • indexField

      @Nullable public final IndexField indexField()
      API name: index_field
    • meta

      public final java.util.Map<java.lang.String,​JsonData> meta()
      API name: _meta
    • numericDetection

      @Nullable public final java.lang.Boolean numericDetection()
      API name: numeric_detection
    • properties

      public final java.util.Map<java.lang.String,​Property> properties()
      API name: properties
    • routing

      @Nullable public final RoutingField routing()
      API name: _routing
    • size

      @Nullable public final SizeField size()
      API name: _size
    • source

      @Nullable public final SourceField source()
      API name: _source
    • runtime

      public final java.util.Map<java.lang.String,​RuntimeField> runtime()
      API name: runtime
    • enabled

      @Nullable public final java.lang.Boolean enabled()
      API name: enabled
    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupTypeMappingDeserializer

      protected static void setupTypeMappingDeserializer​(ObjectDeserializer<TypeMapping.Builder> op)