public class OrcMetadataReader extends Object implements MetadataReader
Constructor and Description |
---|
OrcMetadataReader(RuntimeStats runtimeStats) |
public OrcMetadataReader(RuntimeStats runtimeStats)
public PostScript readPostScript(byte[] data, int offset, int length) throws IOException
readPostScript
in interface MetadataReader
IOException
public Metadata readMetadata(PostScript.HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws IOException
readMetadata
in interface MetadataReader
IOException
public Footer readFooter(PostScript.HiveWriterVersion hiveWriterVersion, InputStream inputStream, DwrfEncryptionProvider dwrfEncryptionProvider, DwrfKeyProvider dwrfKeyProvider, OrcDataSource orcDataSource, Optional<OrcDecompressor> decompressor) throws IOException
readFooter
in interface MetadataReader
IOException
public StripeFooter readStripeFooter(OrcDataSourceId orcDataSourceId, List<OrcType> types, InputStream inputStream) throws IOException
readStripeFooter
in interface MetadataReader
IOException
public List<RowGroupIndex> readRowIndexes(PostScript.HiveWriterVersion hiveWriterVersion, InputStream inputStream) throws IOException
readRowIndexes
in interface MetadataReader
IOException
public List<HiveBloomFilter> readBloomFilterIndexes(InputStream inputStream) throws IOException
readBloomFilterIndexes
in interface MetadataReader
IOException
public static io.airlift.slice.Slice maxStringTruncateToValidRange(io.airlift.slice.Slice value, PostScript.HiveWriterVersion version)
public static io.airlift.slice.Slice minStringTruncateToValidRange(io.airlift.slice.Slice value, PostScript.HiveWriterVersion version)
Copyright © 2012–2021. All rights reserved.