Class GetAsyncResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.sql.GetAsyncResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetAsyncResponse>
- Enclosing class:
- GetAsyncResponse
public static class GetAsyncResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<GetAsyncResponse>
Builder for
GetAsyncResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description GetAsyncResponsebuild()Builds aGetAsyncResponse.GetAsyncResponse.Buildercolumns(Column value, Column... values)Column headings for the search results.GetAsyncResponse.Buildercolumns(java.util.function.Function<Column.Builder,ObjectBuilder<Column>> fn)Column headings for the search results.GetAsyncResponse.Buildercolumns(java.util.List<Column> list)Column headings for the search results.GetAsyncResponse.Buildercursor(java.lang.String value)Cursor for the next set of paginated results.GetAsyncResponse.Builderid(java.lang.String value)Required - Identifier for the search.GetAsyncResponse.BuilderisPartial(boolean value)Required - Iftrue, the response does not contain complete search results.GetAsyncResponse.BuilderisRunning(boolean value)Required - Iftrue, the search is still running.GetAsyncResponse.Builderrows(java.util.List<JsonData> value, java.util.List<JsonData>... values)Required - Values for the search results.GetAsyncResponse.Builderrows(java.util.List<java.util.List<JsonData>> list)Required - Values for the search results.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - Identifier for the search. This value is only returned for async and saved synchronous searches. For CSV, TSV, and TXT responses, this value is returned in theAsync-IDHTTP header.API name:
id -
isRunning
Required - Iftrue, the search is still running. If false, the search has finished. This value is only returned 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
Required - 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 only returned for async and saved synchronous searches. For CSV, TSV, and TXT responses, this value is returned in theAsync-partialHTTP header.API name:
is_partial -
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
public final GetAsyncResponse.Builder columns(java.util.function.Function<Column.Builder,ObjectBuilder<Column>> fn)Column headings for the search results. Each object is a column.API name:
columnsAdds a value to
columnsusing a builder lambda. -
cursor
Cursor for the next set of paginated results. For CSV, TSV, and TXT responses, this value is returned in theCursorHTTP header.API name:
cursor -
rows
Required - Values for the search results.API name:
rowsAdds all elements of
listtorows. -
rows
public final GetAsyncResponse.Builder rows(java.util.List<JsonData> value, java.util.List<JsonData>... values)Required - Values for the search results.API name:
rowsAdds one or more values to
rows. -
build
Builds aGetAsyncResponse.- Specified by:
buildin interfaceObjectBuilder<GetAsyncResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-