Class ApiInputStreamFactory
- java.lang.Object
-
- risesoft.data.transfer.stream.api.in.ApiInputStreamFactory
-
- All Implemented Interfaces:
Closed,DataStreamFactory<DataInputStream>,DataInputStreamFactory
public class ApiInputStreamFactory extends Object implements DataInputStreamFactory
接口数据源-输入流工厂- Author:
- pzx
-
-
Constructor Summary
Constructors Constructor Description ApiInputStreamFactory(Configuration configuration, LoggerFactory loggerFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()DataInputStreamgetStream()voidinit()List<Data>splitToData(int executorSize)
-
-
-
Constructor Detail
-
ApiInputStreamFactory
public ApiInputStreamFactory(Configuration configuration, LoggerFactory loggerFactory)
-
-
Method Detail
-
getStream
public DataInputStream getStream()
- Specified by:
getStreamin interfaceDataStreamFactory<DataInputStream>
-
init
public void init()
- Specified by:
initin interfaceDataStreamFactory<DataInputStream>
-
close
public void close() throws Exception
-
splitToData
public List<Data> splitToData(int executorSize) throws Exception
- Specified by:
splitToDatain interfaceDataInputStreamFactory- Throws:
Exception
-
-