public final class Source
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Source() |
| Modifier and Type | Method and Description |
|---|---|
Source |
clone() |
List<Map<String,Object>> |
getBaseSpecs()
While splitting, sources may specify the produced bundles as differences against another
source, in order to save backend-side memory and allow bigger jobs.
|
Map<String,Object> |
getCodec()
The codec to use to decode data read from the source.
|
Boolean |
getDoesNotNeedSplitting()
Setting this value to true hints to the framework that the source doesn't need splitting, and
using SourceSplitRequest on it would yield SOURCE_SPLIT_OUTCOME_USE_CURRENT.
|
SourceMetadata |
getMetadata()
Optionally, metadata for this source can be supplied right away, avoiding a
SourceGetMetadataOperation roundtrip (see SourceOperationRequest).
|
Map<String,Object> |
getSpec()
The source to read from, plus its parameters.
|
Source |
set(String fieldName,
Object value) |
Source |
setBaseSpecs(List<Map<String,Object>> baseSpecs)
While splitting, sources may specify the produced bundles as differences against another
source, in order to save backend-side memory and allow bigger jobs.
|
Source |
setCodec(Map<String,Object> codec)
The codec to use to decode data read from the source.
|
Source |
setDoesNotNeedSplitting(Boolean doesNotNeedSplitting)
Setting this value to true hints to the framework that the source doesn't need splitting, and
using SourceSplitRequest on it would yield SOURCE_SPLIT_OUTCOME_USE_CURRENT.
|
Source |
setMetadata(SourceMetadata metadata)
Optionally, metadata for this source can be supplied right away, avoiding a
SourceGetMetadataOperation roundtrip (see SourceOperationRequest).
|
Source |
setSpec(Map<String,Object> spec)
The source to read from, plus its parameters.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic List<Map<String,Object>> getBaseSpecs()
null for nonepublic Source setBaseSpecs(List<Map<String,Object>> baseSpecs)
baseSpecs - baseSpecs or null for nonepublic Map<String,Object> getCodec()
null for nonepublic Source setCodec(Map<String,Object> codec)
codec - codec or null for nonepublic Boolean getDoesNotNeedSplitting()
null for nonepublic Source setDoesNotNeedSplitting(Boolean doesNotNeedSplitting)
doesNotNeedSplitting - doesNotNeedSplitting or null for nonepublic SourceMetadata getMetadata()
null for nonepublic Source setMetadata(SourceMetadata metadata)
metadata - metadata or null for nonepublic Map<String,Object> getSpec()
null for nonepublic Source setSpec(Map<String,Object> spec)
spec - spec or null for nonepublic Source set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Source clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2024 Google. All rights reserved.