int record = 0; RecordIdentifier id = reader.createKey(); OrcStruct struct = reader.createValue(); while (reader.next(id, struct)) { assertEquals("id " + record, record, id.getRowId()); record = 0; id = reader.createKey(); struct = reader.createValue(); while (reader.next(id, struct)) { assertEquals("id " + record, record, id.getRowId());
OrcStruct struct = reader.createValue();
VectorizedOrcAcidRowReader(AcidInputFormat.RowReader<OrcStruct> inner, Configuration conf, FileSplit split) throws IOException { this.innerReader = inner; this.key = inner.createKey(); this.rowBatchCtx = new VectorizedRowBatchCtx(); this.value = inner.createValue(); this.objectInspector = inner.getObjectInspector(); try { rowBatchCtx.init(conf, split); } catch (ClassNotFoundException e) { throw new IOException("Failed to initialize context", e); } catch (SerDeException e) { throw new IOException("Failed to initialize context", e); } catch (InstantiationException e) { throw new IOException("Failed to initialize context", e); } catch (IllegalAccessException e) { throw new IOException("Failed to initialize context", e); } catch (HiveException e) { throw new IOException("Failed to initialize context", e); } }
@Override public OrcStruct createValue() { return inner.createValue(); }
VectorizedOrcAcidRowReader(AcidInputFormat.RowReader<OrcStruct> inner, Configuration conf, VectorizedRowBatchCtx vectorizedRowBatchCtx, FileSplit split) throws IOException { this.innerReader = inner; this.key = inner.createKey(); rbCtx = vectorizedRowBatchCtx; int partitionColumnCount = rbCtx.getPartitionColumnCount(); if (partitionColumnCount > 0) { partitionValues = new Object[partitionColumnCount]; rbCtx.getPartitionValues(rbCtx, conf, split, partitionValues); } this.value = inner.createValue(); this.objectInspector = inner.getObjectInspector(); }
@Override public OrcStruct createValue() { return inner.createValue(); }
@Override public OrcStruct createValue() { return inner.createValue(); }