public class Parquet
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Parquet.DataWriteBuilder |
static class |
Parquet.DeleteWriteBuilder |
static class |
Parquet.ReadBuilder |
static class |
Parquet.WriteBuilder |
Modifier and Type | Method and Description |
---|---|
static void |
concat(java.lang.Iterable<java.io.File> inputFiles,
java.io.File outputFile,
int rowGroupSize,
Schema schema,
java.util.Map<java.lang.String,java.lang.String> metadata)
Combines several files into one
|
static Parquet.ReadBuilder |
read(InputFile file) |
static Parquet.WriteBuilder |
write(OutputFile file) |
static Parquet.DataWriteBuilder |
writeData(OutputFile file) |
static Parquet.DeleteWriteBuilder |
writeDeletes(OutputFile file) |
public static Parquet.WriteBuilder write(OutputFile file)
public static Parquet.DataWriteBuilder writeData(OutputFile file)
public static Parquet.DeleteWriteBuilder writeDeletes(OutputFile file)
public static Parquet.ReadBuilder read(InputFile file)
public static void concat(java.lang.Iterable<java.io.File> inputFiles, java.io.File outputFile, int rowGroupSize, Schema schema, java.util.Map<java.lang.String,java.lang.String> metadata) throws java.io.IOException
inputFiles
- an Iterable
of parquet files. The order of iteration determines the order in which
content of files are read and written to the outputFile
outputFile
- the output parquet file containing all the data from inputFiles
rowGroupSize
- the row group size to use when writing the outputFile
schema
- the schema of the datametadata
- extraMetadata to write at the footer of the outputFile
java.io.IOException