Class Schema
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.schemas.Schema
-
- All Implemented Interfaces:
ErrorableResponse
public class Schema extends Object implements ErrorableResponse
Represents an engine's schema
-
-
Constructor Summary
Constructors Constructor Description Schema()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<String>getErrors()Get the errorsFieldTypegetField(String fieldName)Get the field type for the given field nameSet<String>getFieldNames()Get a set of all the field names in this schemainthashCode()booleanisError()Gets whether this response contains any errors from the requested operationvoidsetErrors(List<String> errors)Get the errorsSchemasetField(String fieldName, FieldType fieldType)Set the field type for the given fieldStringtoString()
-
-
-
Method Detail
-
getField
public FieldType getField(String fieldName)
Get the field type for the given field name- Parameters:
fieldName- The name of the field- Returns:
- the field type for this given field, or null if the field does not exist
-
setField
public Schema setField(String fieldName, FieldType fieldType)
Set the field type for the given field- Parameters:
fieldName- The name of the fieldfieldType- The type of the field- Returns:
- the updated schema object
-
getFieldNames
public Set<String> getFieldNames()
Get a set of all the field names in this schema- Returns:
- a set of all the field names in this schema
-
isError
public boolean isError()
Description copied from interface:ErrorableResponseGets whether this response contains any errors from the requested operation- Specified by:
isErrorin interfaceErrorableResponse- Returns:
- true if 1 or more errors occurred, otherwise false
-
-