public OrcNewSplit(OrcSplit inner) : base(inner.getPath(), inner.getStart(), inner.getLength(), inner.getLocations()) { this.fileMetaInfo = inner.getFileMetaInfo(); this._hasFooter = inner.hasFooter(); this._isOriginal = inner.isOriginal(); this._hasBase = inner.hasBase(); this.deltas.AddRange(inner.getDeltas()); }
getRecordReader(InputSplit inputSplit, JobConf conf, Reporter reporter) { FileSplit fSplit = (FileSplit)inputSplit; reporter.setStatus(fSplit.ToString()); Path path = fSplit.getPath(); OrcFile.ReaderOptions opts = OrcFile.readerOptions(conf); if (fSplit is OrcSplit) { OrcSplit orcSplit = (OrcSplit)fSplit; if (orcSplit.hasFooter()) { opts.fileMetaInfo(orcSplit.getFileMetaInfo()); } } Reader reader = OrcFile.createReader(path, opts); return(new VectorizedOrcRecordReader(reader, conf, fSplit)); }