These are all the paths we will read for this data completely enumerated
These are all the paths we will read for this data completely enumerated
Creates a local tap.
Creates a local tap.
The mode for handling output conflicts.
A tap.
Subclasses of Source MUST override this method.
Subclasses of Source MUST override this method. They may call out to TestTapFactory for making Taps suitable for testing.
Override this if you have for instance an hourly pattern but want to run every 6 hours.
Override this if you have for instance an hourly pattern but want to run every 6 hours. By default, we call TimePathedSource.stepSize(pattern, tz)
Get path statuses based on daterange.
Get path statuses based on daterange. This tests each path with pathIsGood (which by default checks that there is at least on file in that directory)
The scheme to use if the source is on hdfs.
The scheme to use if the source is on hdfs.
A path to use for the local tap.
A path to use for the local tap.
The scheme to use if the source is local.
The scheme to use if the source is local.
Determines if a path is 'valid' for this source.
Determines if a path is 'valid' for this source. In strict mode all paths must be valid. In non-strict mode, all invalid paths will be filtered out.
Subclasses can override this to validate paths.
The default implementation is a quick sanity check to look for missing or empty directories. It is necessary but not sufficient -- there are cases where this will return true but there is in fact missing data.
TODO: consider writing a more in-depth version of this method in TimePathedSource that looks for TODO: missing days / hours etc.
This is a name the refers to this exact instance of the source (put another way, if s1.sourceId == s2.sourceId, the job should work the same if one is replaced with the other
This is a name the refers to this exact instance of the source (put another way, if s1.sourceId == s2.sourceId, the job should work the same if one is replaced with the other
The mock passed in to scalding.JobTest may be considered as a mock of the Tap or the Source.
The mock passed in to scalding.JobTest may be considered as a mock of the Tap or the Source. By default, as of 0.9.0, it is considered as a Mock of the Source. If you set this to true, the mock in TestMode will be considered to be a mock of the Tap (which must be transformed) and not the Source.
write the pipe but return the input so it can be chained into the next operation
write the pipe but return the input so it can be chained into the next operation
(Since version 0.9.0) replace with Mappable.toIterator