コード例 #1
0
 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());
 }
コード例 #2
0
 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());
 }
コード例 #3
0
        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));
        }