@Deprecated public class Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.DefaultFileMetaDataConsumer
Deprecated.
Simple default consumer that sets the fields
|
static class |
Util.FileMetaDataConsumer
Deprecated.
To read metadata in a streaming fashion.
|
Constructor and Description |
---|
Util()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static ColumnIndex |
readColumnIndex(InputStream from)
Deprecated.
|
static FileMetaData |
readFileMetaData(InputStream from)
Deprecated.
|
static FileMetaData |
readFileMetaData(InputStream from,
boolean skipRowGroups)
Deprecated.
reads the meta data from the stream
|
static void |
readFileMetaData(InputStream from,
Util.FileMetaDataConsumer consumer)
Deprecated.
|
static void |
readFileMetaData(InputStream from,
Util.FileMetaDataConsumer consumer,
boolean skipRowGroups)
Deprecated.
|
static OffsetIndex |
readOffsetIndex(InputStream from)
Deprecated.
|
static PageHeader |
readPageHeader(InputStream from)
Deprecated.
|
static void |
writeColumnIndex(ColumnIndex columnIndex,
OutputStream to)
Deprecated.
|
static void |
writeFileMetaData(FileMetaData fileMetadata,
OutputStream to)
Deprecated.
|
static void |
writeOffsetIndex(OffsetIndex offsetIndex,
OutputStream to)
Deprecated.
|
static void |
writePageHeader(PageHeader pageHeader,
OutputStream to)
Deprecated.
|
public static void writeColumnIndex(ColumnIndex columnIndex, OutputStream to) throws IOException
IOException
public static ColumnIndex readColumnIndex(InputStream from) throws IOException
IOException
public static void writeOffsetIndex(OffsetIndex offsetIndex, OutputStream to) throws IOException
IOException
public static OffsetIndex readOffsetIndex(InputStream from) throws IOException
IOException
public static void writePageHeader(PageHeader pageHeader, OutputStream to) throws IOException
IOException
public static PageHeader readPageHeader(InputStream from) throws IOException
IOException
public static void writeFileMetaData(FileMetaData fileMetadata, OutputStream to) throws IOException
IOException
public static FileMetaData readFileMetaData(InputStream from) throws IOException
IOException
public static FileMetaData readFileMetaData(InputStream from, boolean skipRowGroups) throws IOException
from
- the stream to read the metadata fromskipRowGroups
- whether row groups should be skippedIOException
public static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer) throws IOException
IOException
public static void readFileMetaData(InputStream from, Util.FileMetaDataConsumer consumer, boolean skipRowGroups) throws IOException
IOException
Copyright © 2022 The Apache Software Foundation. All rights reserved.