public interface ReadableSource<T> extends Source<T>
Source
interface that indicates that a
Source
instance may be read as a series of records by the client
code. This is used to determine whether a PCollection
instance can be
materialized.Modifier and Type | Method and Description |
---|---|
ReadableData<T> |
asReadable() |
Iterable<T> |
read(org.apache.hadoop.conf.Configuration conf)
Returns an
Iterable that contains the contents of this source. |
configureSource, getConverter, getLastModifiedAt, getSize, getType, inputConf
Iterable<T> read(org.apache.hadoop.conf.Configuration conf) throws IOException
Iterable
that contains the contents of this source.conf
- The current Configuration
instanceSource
as an Iterable
instanceIOException
ReadableData<T> asReadable()
ReadableData
instance containing the data referenced by this
ReadableSource
.Copyright © 2016 The Apache Software Foundation. All rights reserved.