Class QueryResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QueryResponse.Builder>
co.elastic.clients.elasticsearch.sql.QueryResponse.Builder
- All Implemented Interfaces:
WithJson<QueryResponse.Builder>,ObjectBuilder<QueryResponse>
- Enclosing class:
- QueryResponse
public static class QueryResponse.Builder
extends WithJsonObjectBuilderBase<QueryResponse.Builder>
implements ObjectBuilder<QueryResponse>
Builder for
QueryResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aQueryResponse.final QueryResponse.BuilderColumn headings for the search results.final QueryResponse.BuilderColumn headings for the search results.final QueryResponse.BuilderColumn headings for the search results.final QueryResponse.BuilderThe cursor for the next set of paginated results.final QueryResponse.BuilderThe identifier for the search.final QueryResponse.BuilderIftrue, the response does not contain complete search results.final QueryResponse.BuilderIftrue, the search is still running.final QueryResponse.BuilderRequired - The values for the search results.final QueryResponse.BuilderRequired - The values for the search results.protected QueryResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
columns
Column headings for the search results. Each object is a column.API name:
columnsAdds all elements of
listtocolumns. -
columns
Column headings for the search results. Each object is a column.API name:
columnsAdds one or more values to
columns. -
columns
Column headings for the search results. Each object is a column.API name:
columnsAdds a value to
columnsusing a builder lambda. -
cursor
The cursor for the next set of paginated results. For CSV, TSV, and TXT responses, this value is returned in theCursorHTTP header.API name:
cursor -
id
The identifier for the search. This value is returned only for async and saved synchronous searches. For CSV, TSV, and TXT responses, this value is returned in theAsync-IDHTTP header.API name:
id -
isRunning
Iftrue, the search is still running. Iffalse, the search has finished. This value is returned only for async and saved synchronous searches. For CSV, TSV, and TXT responses, this value is returned in theAsync-partialHTTP header.API name:
is_running -
isPartial
Iftrue, the response does not contain complete search results. Ifis_partialistrueandis_runningistrue, the search is still running. Ifis_partialistruebutis_runningisfalse, the results are partial due to a failure or timeout. This value is returned only for async and saved synchronous searches. For CSV, TSV, and TXT responses, this value is returned in theAsync-partialHTTP header.API name:
is_partial -
rows
Required - The values for the search results.API name:
rowsAdds all elements of
listtorows. -
rows
Required - The values for the search results.API name:
rowsAdds one or more values to
rows. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<QueryResponse.Builder>
-
build
Builds aQueryResponse.- Specified by:
buildin interfaceObjectBuilder<QueryResponse>- Throws:
NullPointerException- if some of the required fields are null.
-