public interface PushResultSetReader
start()
to obtain a reader for that batch.
In Drill,
batches may have the same or different schemas. Each call to
start()
prepares a RowSetReader
to use for
the available batch. If the batch has the same schema as the previous,
then the existing reader is simply repositioned at the start of the
batch. If the schema changed (or this is the first batch), then a
new reader is created. Thus, the client should not assume that the
same reader is available across calls. However, if it is useful to
cache column writers, simply check if the reader returned from
start()
is the same as the previous one. If so, the column
writers are also the same.
Modifier and Type | Method and Description |
---|---|
RowSetReader |
start() |
RowSetReader start()
Copyright © 1970 The Apache Software Foundation. All rights reserved.