K - Type of keys to be read.V - Type of values to be read.public static class HadoopFormatIO.HadoopInputFormatBoundedSource<K,V>
extends org.apache.beam.sdk.io.BoundedSource<org.apache.beam.sdk.values.KV<K,V>>
implements java.io.Serializable
HadoopFormatIO.| Modifier | Constructor and Description |
|---|---|
protected |
HadoopInputFormatBoundedSource(org.apache.beam.sdk.io.hadoop.SerializableConfiguration conf,
org.apache.beam.sdk.coders.Coder<K> keyCoder,
org.apache.beam.sdk.coders.Coder<V> valueCoder,
@Nullable org.apache.beam.sdk.transforms.SimpleFunction<?,K> keyTranslationFunction,
@Nullable org.apache.beam.sdk.transforms.SimpleFunction<?,V> valueTranslationFunction,
HadoopFormatIO.SerializableSplit inputSplit,
boolean skipKeyClone,
boolean skipValueClone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createInputFormatInstance()
Creates instance of InputFormat class.
|
org.apache.beam.sdk.io.BoundedSource.BoundedReader<org.apache.beam.sdk.values.KV<K,V>> |
createReader(org.apache.beam.sdk.options.PipelineOptions options) |
org.apache.beam.sdk.io.hadoop.SerializableConfiguration |
getConfiguration() |
long |
getEstimatedSizeBytes(org.apache.beam.sdk.options.PipelineOptions po) |
org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,V>> |
getOutputCoder() |
void |
populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder) |
java.util.List<org.apache.beam.sdk.io.BoundedSource<org.apache.beam.sdk.values.KV<K,V>>> |
split(long desiredBundleSizeBytes,
org.apache.beam.sdk.options.PipelineOptions options) |
void |
validate() |
protected HadoopInputFormatBoundedSource(org.apache.beam.sdk.io.hadoop.SerializableConfiguration conf,
org.apache.beam.sdk.coders.Coder<K> keyCoder,
org.apache.beam.sdk.coders.Coder<V> valueCoder,
@Nullable org.apache.beam.sdk.transforms.SimpleFunction<?,K> keyTranslationFunction,
@Nullable org.apache.beam.sdk.transforms.SimpleFunction<?,V> valueTranslationFunction,
HadoopFormatIO.SerializableSplit inputSplit,
boolean skipKeyClone,
boolean skipValueClone)
public org.apache.beam.sdk.io.hadoop.SerializableConfiguration getConfiguration()
public void validate()
public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
public java.util.List<org.apache.beam.sdk.io.BoundedSource<org.apache.beam.sdk.values.KV<K,V>>> split(long desiredBundleSizeBytes, org.apache.beam.sdk.options.PipelineOptions options) throws java.lang.Exception
public long getEstimatedSizeBytes(org.apache.beam.sdk.options.PipelineOptions po)
throws java.lang.Exception
protected void createInputFormatInstance()
throws java.io.IOException
java.io.IOExceptionpublic org.apache.beam.sdk.coders.Coder<org.apache.beam.sdk.values.KV<K,V>> getOutputCoder()