Package org.apache.druid.data.input
Interface InputSourceReader
-
- All Known Implementing Classes:
InputEntityIteratingReader,TimedShutoffInputSourceReader,TransformingInputSourceReader
public interface InputSourceReaderInputSourceReader reads data fromInputSourceand returns aCloseableIteratorofInputRows. SeeInputSourcefor an example usage. Implementations of this class can useInputEntityandInputEntityReader.InputFormatcan be useful to understand how to create an InputEntityReader. SeeInputEntityIteratingReaderas an example.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CloseableIterator<InputRow>read()CloseableIterator<InputRow>read(InputStats inputStats)default RowAdapter<InputRow>rowAdapter()Returns an adapter that can be used to read the rows fromread().CloseableIterator<InputRowListPlusRawValues>sample()
-
-
-
Method Detail
-
read
default CloseableIterator<InputRow> read() throws IOException
- Throws:
IOException
-
read
CloseableIterator<InputRow> read(InputStats inputStats) throws IOException
- Throws:
IOException
-
sample
CloseableIterator<InputRowListPlusRawValues> sample() throws IOException
- Throws:
IOException
-
rowAdapter
default RowAdapter<InputRow> rowAdapter()
Returns an adapter that can be used to read the rows fromread().
-
-