Class SimpleField
java.lang.Object
org.springframework.data.elasticsearch.core.query.SimpleField
- All Implemented Interfaces:
Field
The most trivial implementation of a Field. The
name
is updatable, so it may be changed during query
preparation by the MappingElasticsearchConverter
.- Author:
- Rizwan Idrees, Mohsin Husen, Peter-Josef Meisch
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SimpleField
-
-
Method Details
-
setName
-
getName
-
setFieldType
- Specified by:
setFieldType
in interfaceField
- Parameters:
fieldType
- sets the field's type
-
getFieldType
- Specified by:
getFieldType
in interfaceField
- Returns:
- The annotated FieldType of the field
-
setPath
Description copied from interface:Field
Sets the path if this field has a multi-part name that should be used in a nested query. -
getPath
-
toString
-