public static class TestFileScanFramework.MockFileReaderFactory extends FileScanFramework.FileReaderFactory
This is not a good example of a real file reader factory, it does, however, illustrate a design goal to allow a variety of implementations through composition.
| Modifier and Type | Field and Description |
|---|---|
Iterator<org.apache.drill.exec.physical.impl.scan.TestFileScanFramework.MockFileReader> |
readerIter |
| Constructor and Description |
|---|
MockFileReaderFactory(List<org.apache.drill.exec.physical.impl.scan.TestFileScanFramework.MockFileReader> readers) |
| Modifier and Type | Method and Description |
|---|---|
ManagedReader<? extends FileScanFramework.FileSchemaNegotiator> |
newReader() |
bind, errorContext, fileFramework, nextpublic Iterator<org.apache.drill.exec.physical.impl.scan.TestFileScanFramework.MockFileReader> readerIter
public MockFileReaderFactory(List<org.apache.drill.exec.physical.impl.scan.TestFileScanFramework.MockFileReader> readers)
public ManagedReader<? extends FileScanFramework.FileSchemaNegotiator> newReader()
newReader in class FileScanFramework.FileReaderFactoryCopyright © 2021 The Apache Software Foundation. All rights reserved.