Package org.apache.parquet.cli.commands
Class ToAvroCommand
- java.lang.Object
-
- org.apache.parquet.cli.BaseCommand
-
- org.apache.parquet.cli.commands.ToAvroCommand
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,Command
public class ToAvroCommand extends BaseCommand
-
-
Field Summary
-
Fields inherited from class org.apache.parquet.cli.BaseCommand
console
-
-
Constructor Summary
Constructors Constructor Description ToAvroCommand(org.slf4j.Logger console)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-