public abstract class SimpleInputDataSetConfigurator extends java.lang.Object implements InputDataSetConfigurator
AbstractInputDataSet
. It will perform the minimum setup, that is, it will only set the input format, record info provider, spatial configuration and data length. When used in a InputDataSetConfiguratorHandler
chain, it must be placed at the end of the list of configurators, otherwise it will accept input data sets that may be better fitted by another configurator.Constructor and Description |
---|
SimpleInputDataSetConfigurator() |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsDataSet(AbstractInputDataSet dataSet)
Returns true if the current configurator can configure the given data set
|
void |
configure(AbstractInputDataSet dataSet, Configuration conf)
Setups the given data set using the given job's configuration
|
static void |
validateInputFormatClass(AbstractInputDataSet dataSet) |
static void |
validateRecordInfoProviderClass(AbstractInputDataSet dataSet)
Validates the
RecordInfoProvider contained by the given data set |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBaseInputFormatClass
public boolean acceptsDataSet(AbstractInputDataSet dataSet)
DataSetConfigurator
acceptsDataSet
in interface DataSetConfigurator<AbstractInputDataSet>
dataSet
- a data setpublic void configure(AbstractInputDataSet dataSet, Configuration conf) throws java.lang.Exception
DataSetConfigurator
configure
in interface DataSetConfigurator<AbstractInputDataSet>
dataSet
- a data setconf
- a job configurationjava.lang.Exception
public static void validateInputFormatClass(AbstractInputDataSet dataSet)
public static void validateRecordInfoProviderClass(AbstractInputDataSet dataSet)
RecordInfoProvider
contained by the given data setdataSet
- an input data setCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.