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 Google Dataflow API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
java.util.List<java.util.Map<java.lang.String,java.lang.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCodec()
The codec to use to decode data read from the source.
|
java.lang.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).
|
java.util.Map<java.lang.String,java.lang.Object> |
getSpec()
The source to read from, plus its parameters.
|
Source |
set(java.lang.String fieldName,
java.lang.Object value) |
Source |
setBaseSpecs(java.util.List<java.util.Map<java.lang.String,java.lang.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(java.util.Map<java.lang.String,java.lang.Object> codec)
The codec to use to decode data read from the source.
|
Source |
setDoesNotNeedSplitting(java.lang.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(java.util.Map<java.lang.String,java.lang.Object> spec)
The source to read from, plus its parameters.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getBaseSpecs()
null
for nonepublic Source setBaseSpecs(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> baseSpecs)
baseSpecs
- baseSpecs or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getCodec()
null
for nonepublic Source setCodec(java.util.Map<java.lang.String,java.lang.Object> codec)
codec
- codec or null
for nonepublic java.lang.Boolean getDoesNotNeedSplitting()
null
for nonepublic Source setDoesNotNeedSplitting(java.lang.Boolean doesNotNeedSplitting)
doesNotNeedSplitting
- doesNotNeedSplitting or null
for nonepublic SourceMetadata getMetadata()
null
for nonepublic Source setMetadata(SourceMetadata metadata)
metadata
- metadata or null
for nonepublic java.util.Map<java.lang.String,java.lang.Object> getSpec()
null
for nonepublic Source setSpec(java.util.Map<java.lang.String,java.lang.Object> spec)
spec
- spec or null
for nonepublic Source set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Source clone()
clone
in class com.google.api.client.json.GenericJson