Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/main/java/org/apache/parquet/format/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,22 @@
*/
public class Util {

public static void writeColumnIndex(ColumnIndex columnIndex, OutputStream to) throws IOException {
write(columnIndex, to);
}

public static ColumnIndex readColumnIndex(InputStream from) throws IOException {
return read(from, new ColumnIndex());
}

public static void writeOffsetIndex(OffsetIndex offsetIndex, OutputStream to) throws IOException {
write(offsetIndex, to);
}

public static OffsetIndex readOffsetIndex(InputStream from) throws IOException {
return read(from, new OffsetIndex());
}

public static void writePageHeader(PageHeader pageHeader, OutputStream to) throws IOException {
write(pageHeader, to);
}
Expand Down