dataflow
v1b3
|
#include <source.h>
Public Member Functions | |
Source (const Json::Value &storage) | |
Source (Json::Value *storage) | |
virtual | ~Source () |
const StringPiece | GetTypeName () const |
bool | has_base_specs () const |
void | clear_base_specs () |
const client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > | get_base_specs () const |
client::JsonCppArray< client::JsonCppAssociativeArray< client::JsonCppData > > | mutable_baseSpecs () |
bool | has_codec () const |
void | clear_codec () |
const client::JsonCppAssociativeArray< client::JsonCppData > | get_codec () const |
client::JsonCppAssociativeArray< client::JsonCppData > | mutable_codec () |
bool | has_does_not_need_splitting () const |
void | clear_does_not_need_splitting () |
bool | get_does_not_need_splitting () const |
void | set_does_not_need_splitting (bool value) |
bool | has_metadata () const |
void | clear_metadata () |
const SourceMetadata | get_metadata () const |
SourceMetadata | mutable_metadata () |
bool | has_spec () const |
void | clear_spec () |
const client::JsonCppAssociativeArray< client::JsonCppData > | get_spec () const |
client::JsonCppAssociativeArray< client::JsonCppData > | mutable_spec () |
Static Public Member Functions | |
static Source * | New () |
A source that records can be read and decoded from.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'baseSpecs
' attribute.
|
inline |
Clears the 'codec
' attribute.
|
inline |
Clears the 'doesNotNeedSplitting
' attribute.
|
inline |
Clears the 'metadata
' attribute.
|
inline |
Clears the 'spec
' attribute.
|
inline |
Get a reference to the value of the 'baseSpecs
' attribute.
|
inline |
Get a reference to the value of the 'codec
' attribute.
|
inline |
Get the value of the 'doesNotNeedSplitting
' attribute.
const SourceMetadata google_dataflow_api::Source::get_metadata | ( | ) | const |
Get a reference to the value of the 'metadata
' attribute.
|
inline |
Get a reference to the value of the 'spec
' attribute.
|
inline |
Returns a string denoting the type of this data object.
google_dataflow_api::Source
|
inline |
Determine if the 'baseSpecs
' attribute was set.
baseSpecs
' attribute was set.
|
inline |
Determine if the 'codec
' attribute was set.
codec
' attribute was set.
|
inline |
Determine if the 'doesNotNeedSplitting
' attribute was set.
doesNotNeedSplitting
' attribute was set.
|
inline |
Determine if the 'metadata
' attribute was set.
metadata
' attribute was set.
|
inline |
Determine if the 'spec
' attribute was set.
spec
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'baseSpecs
' property.
While splitting, sources may specify the produced bundles as differences against another source, in order to save backend-side memory and allow bigger jobs. For details, see SourceSplitRequest. To support this use case, the full set of parameters of the source is logically obtained by taking the latest explicitly specified value of each parameter in the order: base_specs (later items win), spec (overrides anything in base_specs).
|
inline |
Gets a reference to a mutable value of the 'codec
' property.
The codec to use to decode data read from the source.
SourceMetadata google_dataflow_api::Source::mutable_metadata | ( | ) |
Gets a reference to a mutable value of the 'metadata
' property.
Optionally, metadata for this source can be supplied right away, avoiding a SourceGetMetadataOperation roundtrip (see SourceOperationRequest).
This field is meaningful only in the Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the framework to the user don't have this field populated.
|
inline |
Gets a reference to a mutable value of the 'spec
' property.
The source to read from, plus its parameters.
|
static |
Creates a new default instance.
|
inline |
Change the 'doesNotNeedSplitting
' attribute.
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.
E.g. a file splitter may set this to true when splitting a single file into a set of byte ranges of appropriate size, and set this to false when splitting a filepattern into individual files. However, for efficiency, a file splitter may decide to produce file subranges directly from the filepattern to avoid a splitting round-trip.
See SourceSplitRequest for an overview of the splitting process.
This field is meaningful only in the Source objects populated by the user (e.g. when filling in a DerivedSource). Source objects supplied by the framework to the user don't have this field populated.
[in] | value | The new value. |