MCPcopy Index your code
hub / github.com/apache/avro / Tool

Interface Tool

lang/java/tools/src/main/java/org/apache/avro/tool/Tool.java:28–51  ·  view source on GitHub ↗

Command-line "avro-tools" utilities should implement this interface for delegation by Main.

Source from the content-addressed store, hash-verified

26 * delegation by {@link Main}.
27 */
28public interface Tool {
29 /**
30 * Runs the tool with supplied arguments. Input and output streams are
31 * customizable for easier testing.
32 *
33 * @param in Input stream to read data (typically System.in).
34 * @param out Output of tool (typically System.out).
35 * @param err Error stream (typically System.err).
36 * @param args Non-null list of arguments.
37 * @return result code (0 for success)
38 * @throws Exception Just like main(), tools may throw Exception.
39 */
40 int run(InputStream in, PrintStream out, PrintStream err, List<String> args) throws Exception;
41
42 /**
43 * Name of tool, to be used in listings.
44 */
45 String getName();
46
47 /**
48 * 1-line description to be used in command listings.
49 */
50 String getShortDescription();
51}

Callers 18

runMethod · 0.95
testWriteIdlAsSchemaMethod · 0.65
writeIdlAsProtocolMethod · 0.65
runMethod · 0.65
runMethod · 0.65
testWriteMethod · 0.65
protocols.jsFile · 0.65
test_protocols.jsFile · 0.65
test_schemas.jsFile · 0.65
OptionalTypeFunction · 0.65

Implementers 15

RpcProtocolToollang/java/tools/src/main/java/org/apac
TrevniMetadataToollang/java/tools/src/main/java/org/apac
TrevniCreateRandomToollang/java/tools/src/main/java/org/apac
CreateRandomFileToollang/java/tools/src/main/java/org/apac
DataFileReadToollang/java/tools/src/main/java/org/apac
SchemaNormalizationToollang/java/tools/src/main/java/org/apac
FromTextToollang/java/tools/src/main/java/org/apac
ToTextToollang/java/tools/src/main/java/org/apac
ConcatToollang/java/tools/src/main/java/org/apac
SpecificCompilerToollang/java/tools/src/main/java/org/apac
DataFileWriteToollang/java/tools/src/main/java/org/apac
RecordCountToollang/java/tools/src/main/java/org/apac

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…