Package org.apache.druid.data.input
Interface InputSourceReader
-
- All Known Implementing Classes:
InputEntityIteratingReader
,TimedShutoffInputSourceReader
,TransformingInputSourceReader
public interface InputSourceReader
InputSourceReader reads data fromInputSource
and returns aCloseableIterator
ofInputRow
s. SeeInputSource
for an example usage. Implementations of this class can useInputEntity
andInputEntityReader
.InputFormat
can be useful to understand how to create an InputEntityReader. SeeInputEntityIteratingReader
as 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()
.
-
-