public class Util extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Util.DefaultFileMetaDataConsumer
Simple default consumer that sets the fields
|
static class |
Util.FileMetaDataConsumer
To read metadata in a streaming fashion.
|
| Constructor and Description |
|---|
Util() |
public static void writeColumnIndex(ColumnIndex columnIndex, OutputStream to) throws IOException
IOExceptionpublic static void writeColumnIndex(ColumnIndex columnIndex, OutputStream to, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static ColumnIndex readColumnIndex(InputStream from) throws IOException
IOExceptionpublic static ColumnIndex readColumnIndex(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writeOffsetIndex(OffsetIndex offsetIndex, OutputStream to) throws IOException
IOExceptionpublic static void writeOffsetIndex(OffsetIndex offsetIndex, OutputStream to, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static OffsetIndex readOffsetIndex(InputStream from) throws IOException
IOExceptionpublic static OffsetIndex readOffsetIndex(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static BloomFilterHeader readBloomFilterHeader(InputStream from) throws IOException
IOExceptionpublic static void writeBloomFilterHeader(BloomFilterHeader header, OutputStream out) throws IOException
IOExceptionpublic static BloomFilterHeader readBloomFilterHeader(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writeBloomFilterHeader(BloomFilterHeader header, OutputStream out, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writePageHeader(PageHeader pageHeader, OutputStream to) throws IOException
IOExceptionpublic static void writePageHeader(PageHeader pageHeader, OutputStream to, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static PageHeader readPageHeader(InputStream from) throws IOException
IOExceptionpublic static PageHeader readPageHeader(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writeFileMetaData(FileMetaData fileMetadata, OutputStream to) throws IOException
IOExceptionpublic static void writeFileMetaData(FileMetaData fileMetadata, OutputStream to, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static FileMetaData readFileMetaData(InputStream from) throws IOException
IOExceptionpublic static FileMetaData readFileMetaData(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writeColumnMetaData(ColumnMetaData columnMetaData, OutputStream to, BlockCipher.Encryptor encryptor, byte[] AAD) throws IOException
IOExceptionpublic static ColumnMetaData readColumnMetaData(InputStream from, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static FileMetaData readFileMetaData(InputStream from, boolean skipRowGroups) throws IOException
from - the stream to read the metadata fromskipRowGroups - whether row groups should be skippedIOException - if any I/O error occurs during the readingpublic static FileMetaData readFileMetaData(InputStream from, boolean skipRowGroups, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void writeFileCryptoMetaData(FileCryptoMetaData cryptoMetadata, OutputStream to) throws IOException
IOExceptionpublic static FileCryptoMetaData readFileCryptoMetaData(InputStream from) throws IOException
IOExceptionpublic static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer) throws IOException
IOExceptionpublic static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionpublic static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer, boolean skipRowGroups) throws IOException
IOExceptionpublic static void readFileMetaData(InputStream input, Util.FileMetaDataConsumer consumer, boolean skipRowGroups, BlockCipher.Decryptor decryptor, byte[] AAD) throws IOException
IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.