public static class GetFeaturesBatchRequest.Builder
extends java.lang.Object
GetFeaturesBatchRequest
objects from values
configured by settersConstructor and Description |
---|
Builder()
Constructs an empty Builder
|
Modifier and Type | Method and Description |
---|---|
GetFeaturesBatchRequest.Builder |
addRequestData(GetFeaturesRequestData requestData)
Adds a single
GetFeaturesRequestData object to the List |
GetFeaturesBatchRequest |
build()
Returns an instance of
GetFeaturesBatchRequest created from the fields set on this
builder |
GetFeaturesBatchRequest.Builder |
featureServiceName(java.lang.String featureServiceName)
Setter for featureServiceName
|
GetFeaturesBatchRequest.Builder |
metadataOptions(java.util.Set<MetadataOption> metadataOptions)
Setter for
MetadataOption |
GetFeaturesBatchRequest.Builder |
microBatchSize(int microBatchSize)
Setter for microBatchSize
|
GetFeaturesBatchRequest.Builder |
requestDataList(java.util.List<GetFeaturesRequestData> requestDataList)
Setter for a
List of GetFeaturesRequestData |
GetFeaturesBatchRequest.Builder |
timeout(java.time.Duration timeout) |
GetFeaturesBatchRequest.Builder |
workspaceName(java.lang.String workspaceName)
Setter for workspaceName
|
public GetFeaturesBatchRequest.Builder workspaceName(java.lang.String workspaceName)
workspaceName
- Name of the workspace in which the Feature Service is definedpublic GetFeaturesBatchRequest.Builder featureServiceName(java.lang.String featureServiceName)
featureServiceName
- Name of the Feature Service for which feature vectors are being
requestedpublic GetFeaturesBatchRequest.Builder requestDataList(java.util.List<GetFeaturesRequestData> requestDataList) throws TectonClientException
List
of GetFeaturesRequestData
requestDataList
- List
of GetFeaturesRequestData
objects with
joinKeyMap and/or requestContextMapTectonClientException
- when requestDataList is null or emptypublic GetFeaturesBatchRequest.Builder addRequestData(GetFeaturesRequestData requestData)
GetFeaturesRequestData
object to the ListrequestData
- GetFeaturesRequestData
object with joinKeyMap and/or
requestContextMappublic GetFeaturesBatchRequest.Builder metadataOptions(java.util.Set<MetadataOption> metadataOptions)
MetadataOption
metadataOptions
- A Set
of MetadataOption
for retrieving additional
metadata about the feature values. Use RequestConstants.ALL_METADATA_OPTIONS
to
request all metadata and RequestConstants.NONE_METADATA_OPTIONS
to request no
metadata respectively. By default, RequestConstants.DEFAULT_METADATA_OPTIONS
will
be added to each requestpublic GetFeaturesBatchRequest.Builder microBatchSize(int microBatchSize) throws TectonClientException
microBatchSize
- an int value between 1 and . The client splits the GetFeaturesBatchRequest
into multiple micro batches of this size and executes them parallely. By default, the
microBatchSize is set to TectonClientException
- when the microBatchSize is out of bounds of [ 1, ]public GetFeaturesBatchRequest.Builder timeout(java.time.Duration timeout)
timeout
- The max time in Duration
for which the client waits for the batch
requests to complete before canceling the operation and returning the partial list of
results.public GetFeaturesBatchRequest build() throws TectonClientException
GetFeaturesBatchRequest
created from the fields set on this
builderGetFeaturesBatchRequest
objectTectonClientException
- when requestDataList is invalid ( when the requestDataList is
null or empty, or any joinKeyMap or requestContextMap is null or empty)TectonClientException
- when microBatchSize is out of bounds of [1,