public class HttpXMLBatchReader extends HttpBatchReader
baseUrl, implicitColumns, paginator
Constructor and Description |
---|
HttpXMLBatchReader(HttpSubScan subScan) |
HttpXMLBatchReader(HttpSubScan subScan,
Paginator paginator) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Release resources.
|
boolean |
next()
Read the next batch.
|
boolean |
open(SchemaNegotiator negotiator)
Setup the record reader.
|
addFilters, buildImplicitColumns, buildUrl, implicitColumnsAreProjected, populateImplicitFieldMap, proxySettings
public HttpXMLBatchReader(HttpSubScan subScan)
public HttpXMLBatchReader(HttpSubScan subScan, Paginator paginator)
public boolean open(SchemaNegotiator negotiator)
ManagedReader
open
in interface ManagedReader<SchemaNegotiator>
open
in class HttpBatchReader
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<SchemaNegotiator>
next
in class HttpBatchReader
public void close()
ManagedReader
close
in interface ManagedReader<SchemaNegotiator>
close
in class HttpBatchReader
Copyright © 1970 The Apache Software Foundation. All rights reserved.