@Override public Footer readFooter(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readFooter(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid file footer"); } }
@Override public StripeFooter readStripeFooter(List<OrcType> types, InputStream inputStream) throws IOException { try { return delegate.readStripeFooter(types, inputStream); } catch (IOException e) { throw propagate(e, "Invalid stripe footer"); } }
@Override public Metadata readMetadata(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readMetadata(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid file metadata"); } }
@Override public PostScript readPostScript(byte[] data, int offset, int length) throws OrcCorruptionException { try { return delegate.readPostScript(data, offset, length); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid postscript"); } }
@Override public List<RowGroupIndex> readRowIndexes(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readRowIndexes(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid stripe row index"); } }
@Override public List<HiveBloomFilter> readBloomFilterIndexes(InputStream inputStream) throws OrcCorruptionException { try { return delegate.readBloomFilterIndexes(inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid bloom filter"); } }
@Override public Footer readFooter(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readFooter(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid file footer"); } }
@Override public List<HiveBloomFilter> readBloomFilterIndexes(InputStream inputStream) throws OrcCorruptionException { try { return delegate.readBloomFilterIndexes(inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid bloom filter"); } }
@Override public Metadata readMetadata(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readMetadata(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid file metadata"); } }
@Override public StripeFooter readStripeFooter(List<OrcType> types, InputStream inputStream) throws IOException { try { return delegate.readStripeFooter(types, inputStream); } catch (IOException e) { throw propagate(e, "Invalid stripe footer"); } }
@Override public PostScript readPostScript(byte[] data, int offset, int length) throws OrcCorruptionException { try { return delegate.readPostScript(data, offset, length); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid postscript"); } }
@Override public List<RowGroupIndex> readRowIndexes(HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws OrcCorruptionException { try { return delegate.readRowIndexes(hiveWriterVersion, inputStream); } catch (IOException | RuntimeException e) { throw propagate(e, "Invalid stripe row index"); } }