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() |
| Modifier and Type | Method and Description |
|---|---|
static FileMetaData |
readFileMetaData(InputStream from) |
static FileMetaData |
readFileMetaData(InputStream from,
boolean skipRowGroups)
reads the meta data from the stream
|
static void |
readFileMetaData(InputStream from,
Util.FileMetaDataConsumer consumer) |
static void |
readFileMetaData(InputStream from,
Util.FileMetaDataConsumer consumer,
boolean skipRowGroups) |
static PageHeader |
readPageHeader(InputStream from) |
static void |
writeFileMetaData(FileMetaData fileMetadata,
OutputStream to) |
static void |
writePageHeader(PageHeader pageHeader,
OutputStream to) |
public static void writePageHeader(PageHeader pageHeader, OutputStream to) throws IOException
IOExceptionpublic static PageHeader readPageHeader(InputStream from) throws IOException
IOExceptionpublic static void writeFileMetaData(FileMetaData fileMetadata, OutputStream to) throws IOException
IOExceptionpublic static FileMetaData readFileMetaData(InputStream from) 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 skippedIOExceptionpublic static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer) throws IOException
IOExceptionpublic static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer, boolean skipRowGroups) throws IOException
IOExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.