public class ImageBatchReader extends Object implements ManagedReader<FileScanFramework.FileSchemaNegotiator>
Modifier and Type | Class and Description |
---|---|
protected static class |
ImageBatchReader.ColumnDefn
The class mainly process schema definition, index binding,
and set up the vector (Column Writers) values.
|
protected static class |
ImageBatchReader.GenericColumnDefn
Responsible for process of the image GenericMetadataDirectory
metadata and create data type based on different tags.
|
protected static class |
ImageBatchReader.ListColumnDefn
Responsible for process of the list-map with array writer.
|
protected static class |
ImageBatchReader.MapColumnDefn
Responsible for process of the map writer (nested structure).
|
Constructor and Description |
---|
ImageBatchReader(ImageFormatConfig config,
EasySubScan scan) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release resources.
|
boolean |
next()
Read the next batch.
|
boolean |
open(FileScanFramework.FileSchemaNegotiator negotiator)
Setup the record reader.
|
public ImageBatchReader(ImageFormatConfig config, EasySubScan scan)
public boolean open(FileScanFramework.FileSchemaNegotiator negotiator)
ManagedReader
open
in interface ManagedReader<FileScanFramework.FileSchemaNegotiator>
negotiator
- mechanism to negotiate select and table
schemas, then create the row set reader used to load data into
value vectorspublic boolean next()
ManagedReader
This somewhat complex protocol avoids the need to allocate a final batch just to find out that no more data is available; it allows EOF to be returned along with the final batch.
next
in interface ManagedReader<FileScanFramework.FileSchemaNegotiator>
public void close()
ManagedReader
close
in interface ManagedReader<FileScanFramework.FileSchemaNegotiator>
Copyright © 1970 The Apache Software Foundation. All rights reserved.