target.apidocs.com.google.api.services.dataflow.model.ApproximateSplitRequest.html Maven / Gradle / Ivy
ApproximateSplitRequest (Dataflow API v1b3-rev20231112-2.0.0)
com.google.api.services.dataflow.model
Class ApproximateSplitRequest
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.dataflow.model.ApproximateSplitRequest
-
public final class ApproximateSplitRequest
extends com.google.api.client.json.GenericJson
A suggestion by the service to the worker to dynamically split the WorkItem.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Dataflow API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ApproximateSplitRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ApproximateSplitRequest
clone()
Double
getFractionConsumed()
A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of
the input).
Double
getFractionOfRemainder()
The fraction of the remainder of work to split the work item at, from 0.0 (split at the current
position) to 1.0 (end of the input).
Position
getPosition()
A Position at which to split the work item.
ApproximateSplitRequest
set(String fieldName,
Object value)
ApproximateSplitRequest
setFractionConsumed(Double fractionConsumed)
A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of
the input).
ApproximateSplitRequest
setFractionOfRemainder(Double fractionOfRemainder)
The fraction of the remainder of work to split the work item at, from 0.0 (split at the current
position) to 1.0 (end of the input).
ApproximateSplitRequest
setPosition(Position position)
A Position at which to split the work item.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getFractionConsumed
public Double getFractionConsumed()
A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of
the input).
- Returns:
- value or
null
for none
-
setFractionConsumed
public ApproximateSplitRequest setFractionConsumed(Double fractionConsumed)
A fraction at which to split the work item, from 0.0 (beginning of the input) to 1.0 (end of
the input).
- Parameters:
fractionConsumed
- fractionConsumed or null
for none
-
getFractionOfRemainder
public Double getFractionOfRemainder()
The fraction of the remainder of work to split the work item at, from 0.0 (split at the current
position) to 1.0 (end of the input).
- Returns:
- value or
null
for none
-
setFractionOfRemainder
public ApproximateSplitRequest setFractionOfRemainder(Double fractionOfRemainder)
The fraction of the remainder of work to split the work item at, from 0.0 (split at the current
position) to 1.0 (end of the input).
- Parameters:
fractionOfRemainder
- fractionOfRemainder or null
for none
-
getPosition
public Position getPosition()
A Position at which to split the work item.
- Returns:
- value or
null
for none
-
setPosition
public ApproximateSplitRequest setPosition(Position position)
A Position at which to split the work item.
- Parameters:
position
- position or null
for none
-
set
public ApproximateSplitRequest set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ApproximateSplitRequest clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy