public class FileScanFramework extends ManagedScanFramework
The framework iterates over file descriptions, creating readers at the moment they are needed. This allows simpler logic because, at the point of reader creation, we have a file system, context and so on.
| Modifier and Type | Class and Description |
|---|---|
static class |
FileScanFramework.FileReaderFactory
Iterates over the splits for the present scan.
|
static class |
FileScanFramework.FileRowSetContext |
static class |
FileScanFramework.FileScanBuilder
Options for a file-based scan.
|
static interface |
FileScanFramework.FileSchemaNegotiator
The file schema negotiator adds no behavior at present, but is
created as a placeholder anticipating the need for file-specific
behavior later.
|
static class |
FileScanFramework.FileSchemaNegotiatorImpl
Implementation of the file-level schema negotiator.
|
ManagedScanFramework.ReaderFactory, ManagedScanFramework.ScanFrameworkBuilderbuilder, context, readerFactory, scanOrchestrator| Constructor and Description |
|---|
FileScanFramework(FileScanFramework.FileScanBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
DrillFileSystem |
fileSystem() |
protected SchemaNegotiatorImpl |
newNegotiator() |
protected org.apache.hadoop.mapred.FileSplit |
nextSplit() |
boolean |
open(ShimBatchReader shimBatchReader) |
FileScanFramework.FileScanBuilder |
options() |
bind, close, context, errorContext, nextReader, outputSchema, scanOrchestratorpublic FileScanFramework(FileScanFramework.FileScanBuilder builder)
public FileScanFramework.FileScanBuilder options()
protected void configure()
configure in class ManagedScanFrameworkprotected org.apache.hadoop.mapred.FileSplit nextSplit()
protected SchemaNegotiatorImpl newNegotiator()
newNegotiator in class ManagedScanFrameworkpublic boolean open(ShimBatchReader shimBatchReader)
open in class ManagedScanFrameworkpublic DrillFileSystem fileSystem()
Copyright © 2021 The Apache Software Foundation. All rights reserved.