public static class TestColumnsArrayFramework.DummyColumnsReader extends Object implements ManagedReader<ColumnsSchemaNegotiator>
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.fs.Path |
filePath |
ColumnsSchemaNegotiator |
negotiator |
TupleMetadata |
schema |
| Constructor and Description |
|---|
DummyColumnsReader(TupleMetadata schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources.
|
org.apache.hadoop.fs.Path |
filePath() |
boolean |
next()
Read the next batch.
|
boolean |
open(ColumnsSchemaNegotiator negotiator)
Setup the record reader.
|
public TupleMetadata schema
public ColumnsSchemaNegotiator negotiator
protected org.apache.hadoop.fs.Path filePath
public DummyColumnsReader(TupleMetadata schema)
public org.apache.hadoop.fs.Path filePath()
public boolean open(ColumnsSchemaNegotiator negotiator)
ManagedReaderopen in interface ManagedReader<ColumnsSchemaNegotiator>negotiator - mechanism to negotiate select and table
schemas, then create the row set reader used to load data into
value vectorspublic boolean next()
ManagedReaderThis 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<ColumnsSchemaNegotiator>public void close()
ManagedReaderclose in interface ManagedReader<ColumnsSchemaNegotiator>Copyright © 2021 The Apache Software Foundation. All rights reserved.