Package org.apache.avro.tool
Class ConcatTool
java.lang.Object
org.apache.avro.tool.ConcatTool
- All Implemented Interfaces:
Tool
Tool to concatenate avro files with the same schema and non-reserved
metatdata.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Name of tool, to be used in listings.1-line description to be used in command listings.int
run
(InputStream in, PrintStream out, PrintStream err, List<String> args) Runs the tool with supplied arguments.
-
Constructor Details
-
ConcatTool
public ConcatTool()
-
-
Method Details
-
run
public int run(InputStream in, PrintStream out, PrintStream err, List<String> args) throws Exception Description copied from interface:Tool
Runs the tool with supplied arguments. Input and output streams are customizable for easier testing.- Specified by:
run
in interfaceTool
- Parameters:
in
- Input stream to read data (typically System.in).out
- Output of tool (typically System.out).err
- Error stream (typically System.err).args
- Non-null list of arguments.- Returns:
- 0 for success, 1 if the schemas of the input files differ, 2 if the non-reserved input metadata differs, 3 if the input files are encoded with more than one codec.
- Throws:
Exception
- Just like main(), tools may throw Exception.
-
getName
Description copied from interface:Tool
Name of tool, to be used in listings. -
getShortDescription
Description copied from interface:Tool
1-line description to be used in command listings.- Specified by:
getShortDescription
in interfaceTool
-