org.springframework.data.hadoop.store.input
Class AbstractDataStreamReader
java.lang.Object
org.springframework.data.hadoop.store.support.LifecycleObjectSupport
org.springframework.data.hadoop.store.support.StoreObjectSupport
org.springframework.data.hadoop.store.support.InputStoreObjectSupport
org.springframework.data.hadoop.store.input.AbstractDataStreamReader
- All Implemented Interfaces:
- Aware, BeanFactoryAware, InitializingBean, Lifecycle, Phased, SmartLifecycle
- Direct Known Subclasses:
- TextFileReader
public class AbstractDataStreamReader
- extends InputStoreObjectSupport
A AbstractDataStreamReader is a base implementation handling
streams with a raw hdfs files.
- Author:
- Janne Valkealahti
| Methods inherited from class org.springframework.data.hadoop.store.support.LifecycleObjectSupport |
afterPropertiesSet, getBeanFactory, getPhase, getStoreEventPublisher, getTaskExecutor, getTaskScheduler, isAutoStartup, isRunning, setAutoStartup, setBeanFactory, setPhase, setStoreEventPublisher, setTaskExecutor, setTaskScheduler, start, stop, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDataStreamReader
public AbstractDataStreamReader(Configuration configuration,
Path basePath,
CodecInfo codec)
- Instantiates a new abstract data stream reader.
- Parameters:
configuration - the hadoop configurationbasePath - the hdfs pathcodec - the compression codec info
AbstractDataStreamReader
public AbstractDataStreamReader(Configuration configuration,
Path basePath,
CodecInfo codec,
Split split)
- Instantiates a new abstract data stream reader.
- Parameters:
configuration - the configurationbasePath - the base pathcodec - the compression codec infosplit - the input split
getInput
protected StreamsHolder<InputStream> getInput()
throws IOException
- Creates a holder wrapping input stream.
- Returns:
- the holder for streams
- Throws:
IOException - Signals that an I/O exception has occurred.