public static class MRInput.MRInputConfigBuilder extends Object
MRInput
Modifier and Type | Method and Description |
---|---|
org.apache.tez.dag.api.DataSourceDescriptor |
build()
Create the
DataSourceDescriptor |
MRInput.MRInputConfigBuilder |
generateSplitsInAM(boolean value)
Set whether splits should be generated in the Tez App Master (default true)
|
MRInput.MRInputConfigBuilder |
getCredentialsForSourceFileSystem(boolean value)
Get the credentials for the inputPaths from their
FileSystem s
Use the method to turn this off when not using a FileSystem
or when Credentials are not supported |
MRInput.MRInputConfigBuilder |
groupSplits(boolean value)
Set whether splits should be grouped (default true)
|
MRInput.MRInputConfigBuilder |
setCustomInitializerDescriptor(org.apache.tez.dag.api.InputInitializerDescriptor customInitializerDescriptor)
This method is intended to be used in case a custom
InputInitializer
is being used along with MRInput. |
public MRInput.MRInputConfigBuilder groupSplits(boolean value)
value
- whether to group splits in the AM or notMRInput.MRInputConfigBuilder
public MRInput.MRInputConfigBuilder generateSplitsInAM(boolean value)
value
- whether to generate splits in the AM or notMRInput.MRInputConfigBuilder
public MRInput.MRInputConfigBuilder getCredentialsForSourceFileSystem(boolean value)
FileSystem
s
Use the method to turn this off when not using a FileSystem
or when Credentials
are not supportedvalue
- whether to get credentials or not. (true by default)MRInput.MRInputConfigBuilder
public MRInput.MRInputConfigBuilder setCustomInitializerDescriptor(org.apache.tez.dag.api.InputInitializerDescriptor customInitializerDescriptor)
InputInitializer
is being used along with MRInput. If a custom descriptor is used, the config builder will not be
able to setup location hints, parallelism, etc, and configuring the Vertex
on which this Input is used is the responsibility of the user.
Credential fetching can be controlled via the getCredentialsForSourceFilesystem
method.
Whether grouping is enabled or not can be controlled via groupSplitsInAM
method.customInitializerDescriptor
- the initializer descriptorMRInput.MRInputConfigBuilder
public org.apache.tez.dag.api.DataSourceDescriptor build()
DataSourceDescriptor
DataSourceDescriptor
Copyright © 2016 Apache Software Foundation. All rights reserved.