Class EngineResponse
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.engines.EngineResponse
-
- All Implemented Interfaces:
ErrorableResponse
public class EngineResponse extends Object implements ErrorableResponse
Represents the response from an engine request
-
-
Constructor Summary
Constructors Constructor Description EngineResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)LonggetDocumentCount()The count of documents in this engineList<String>getErrors()The errorsObjectgetIndexSettingOverride(String key)Get the value of the index override settingSet<String>getIndexSettingOverrideNames()Get a set of all the index setting override keysStringgetLanguage()The engine languageStringgetName()The engine nameStringgetType()The engine typeinthashCode()booleanisError()Gets whether this response contains any errors from the requested operationEngineResponsesetDocumentCount(Long documentCount)The count of documents in this engineEngineResponsesetErrors(List<String> errors)The errorsEngineResponsesetLanguage(String language)The engine languageEngineResponsesetName(String name)The engine nameEngineResponsesetType(String type)The engine typeStringtoString()
-
-
-
Method Detail
-
getIndexSettingOverride
public Object getIndexSettingOverride(String key)
Get the value of the index override setting- Parameters:
key- The name of the index setting- Returns:
- The index setting override value
-
getIndexSettingOverrideNames
public Set<String> getIndexSettingOverrideNames()
Get a set of all the index setting override keys- Returns:
- A set of the index setting keys
-
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
-
getName
public String getName()
The engine name- Returns:
- the engine name
-
getType
public String getType()
The engine type- Returns:
- the engine type
-
getLanguage
public String getLanguage()
The engine language- Returns:
- the languages
-
getDocumentCount
public Long getDocumentCount()
The count of documents in this engine- Returns:
- the count of documents in the engine
-
setName
public EngineResponse setName(String name)
The engine name- Parameters:
name- the engine name- Returns:
this.
-
setType
public EngineResponse setType(String type)
The engine type- Parameters:
type- the engine type- Returns:
this.
-
setLanguage
public EngineResponse setLanguage(String language)
The engine language- Parameters:
language- the engine language- Returns:
this.
-
setDocumentCount
public EngineResponse setDocumentCount(Long documentCount)
The count of documents in this engine- Parameters:
documentCount- the count of documents in the engine- Returns:
this.
-
setErrors
public EngineResponse setErrors(List<String> errors)
The errors- Parameters:
errors- the errors- Returns:
this.
-
-