/** * Returns the vector schema root. This will be loaded with new values on every call to loadNextBatch. * * @return the vector schema root * @throws IOException if reading of schema fails */ public VectorSchemaRoot getVectorSchemaRoot() throws IOException { ensureInitialized(); return root; }
/** * Returns any dictionaries that were loaded along with ArrowRecordBatches. * * @return Map of dictionaries to dictionary id, empty if no dictionaries loaded * @throws IOException if reading of schema fails */ public Map<Long, Dictionary> getDictionaryVectors() throws IOException { ensureInitialized(); return dictionaries; }
/** * Ensure the reader has been initialized and reset the VectorSchemaRoot row count to 0. * * @throws IOException on error */ protected void prepareLoadNextBatch() throws IOException { ensureInitialized(); root.setRowCount(0); }