public class ParquetDump extends Object
This can be invoked using the main(java.lang.String[])
method, which provides a
-h
option for help. Or its functionality can be wrapped
by a more capable utility.
Modifier and Type | Class and Description |
---|---|
static class |
ParquetDump.ChunkMeta
Bean adaptor class that wraps a ColumnChunkMetaData object to
provide BeanStarTable-friendly methods
(string- or primitive-valued accessors) that report interesting
information about a ColumnChunkMetaData object.
|
Constructor and Description |
---|
ParquetDump(ParquetStarTable starTable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static Map<String,java.util.function.Function<ParquetDump,String>> |
createDumpFunctionMap()
Returns a map of the output functions offered by this utility.
|
String |
formatBlocks()
Returns a multi-line string showing information about the data
blocks in the parquet file.
|
String |
formatColumnChunks()
Returns a multi-line string showing information about the column chunks
in each data block.
|
String |
formatKeyValues()
Returns a multi-line string showing the content of the file-level
key-value metadata in the parquet footer.
|
static String |
formatLines(String heading,
String lines)
Formats a multi-line string with a supplied heading.
|
String |
formatSchema()
Returns a multi-line string showing the parquet schema.
|
ParquetStarTable |
getTable()
Returns the table on which this object can report.
|
static void |
main(String[] args)
Main method.
|
static ParquetStarTable |
readParquetTable(String location)
Reads a parquet table from a filename or URL, suitable for use
with this utility.
|
public ParquetDump(ParquetStarTable starTable) throws IOException
starTable
- parquet star tableIOException
public ParquetStarTable getTable()
public String formatSchema()
public String formatKeyValues()
public String formatBlocks()
public String formatColumnChunks()
public static String formatLines(String heading, String lines)
heading
- heading textlines
- multi-line string giving textpublic static Map<String,java.util.function.Function<ParquetDump,String>> createDumpFunctionMap()
public static ParquetStarTable readParquetTable(String location) throws IOException
location
- filename or URLIOException
public static void main(String[] args) throws IOException
-help
.IOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.