Package org.apache.parquet.cli.commands
Class ColumnSizeCommand
- java.lang.Object
-
- org.apache.parquet.cli.BaseCommand
-
- org.apache.parquet.cli.commands.ColumnSizeCommand
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,Command
public class ColumnSizeCommand extends BaseCommand
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.cli.BaseCommand
console
-
-
Constructor Summary
Constructors Constructor Description ColumnSizeCommand(org.slf4j.Logger console)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Float>getColumnRatio(Map<String,Long> colSizes)Map<String,Long>getColumnSizeInBytes(org.apache.hadoop.fs.Path inputFile)List<String>getExamples()Returns a list of example uses.intrun()Runs thisCommand.-
Methods inherited from class org.apache.parquet.cli.BaseCommand
create, createWithChecksum, createWithNoOverwrite, defaultFS, getAvroSchema, getConf, loaderFor, loaderForJars, loaderForPaths, open, openDataFile, openSeekable, output, qualifiedPath, qualifiedURI, setConf
-
-
-
-
Method Detail
-
run
public int run() throws IOExceptionDescription copied from interface:CommandRuns thisCommand.- Returns:
- a return code for the process, 0 indicates success.
- Throws:
IOException- if there is an error while running the command
-
getExamples
public List<String> getExamples()
Description copied from interface:CommandReturns a list of example uses. Lines starting with '#' will not have the executable name added when formatting.- Returns:
- a list of String examples
-
getColumnSizeInBytes
public Map<String,Long> getColumnSizeInBytes(org.apache.hadoop.fs.Path inputFile) throws IOException
- Throws:
IOException
-
-