Class ReadersInitializer
java.lang.Object
org.apache.drill.exec.store.hive.readers.ReadersInitializer
Factory for creation of Hive record readers used by
HiveScanBatchCreator
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<RecordReader>
init
(ExecutorFragmentContext ctx, HiveSubScan config) Selects reader constructor reference asReadersInitializer.HiveReaderFactory
readerFactory.
-
Constructor Details
-
ReadersInitializer
public ReadersInitializer()
-
-
Method Details
-
init
Selects reader constructor reference asReadersInitializer.HiveReaderFactory
readerFactory. Then check if input splits are empty creates empty record reader, or one reader per split otherwise.- Parameters:
ctx
- context related to fragmentconfig
- context which holds different Hive configurations- Returns:
- list containing one or more readers
-