DateField
class DateField<T>(parent: Container<*>, fieldName: String, fieldType: KType, val formats: List<DateFormat> = emptyList()) : Field<T>
Metamodel field for the Elasticsearch date field type, mapped from FieldType.Date.
Optionally carries the DateFormat values declared on the source @Field annotation so consumers can inspect which date formats the underlying Elasticsearch mapping accepts.
Parameters
formats
the accepted date formats, empty when no explicit format was declared
Type Parameters
T
the Kotlin type carried by this field
Constructors
Functions
Link copied to clipboard
Returns the KClass for this field's type, or null if the type is not a concrete class (e.g., if it's a type parameter or complex type intersection).
Link copied to clipboard
Returns true if any ancestor container is marked as nested in Elasticsearch.
Link copied to clipboard
Returns the paths of the ancestor containers that are marked as nested, closest first.