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

Method Main

lang/java/tools/src/main/java/org/apache/avro/tool/Main.java:37–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 int maxLen = 0;
36
37 Main() {
38 tools = new TreeMap<>();
39 for (Tool tool : new Tool[] { new CatTool(), new RecordCountTool(), new SpecificCompilerTool(),
40 new InduceSchemaTool(), new JsonToBinaryFragmentTool(), new BinaryFragmentToJsonTool(),
41 new CreateRandomFileTool(), new DataFileReadTool(), new DataFileWriteTool(), new DataFileGetMetaTool(),
42 new DataFileGetSchemaTool(), new DataFileRepairTool(), new IdlTool(), new IdlToSchemataTool(),
43 new RecodecTool(), new ConcatTool(), new RpcReceiveTool(), new RpcSendTool(), new RpcProtocolTool(),
44 new FromTextTool(), new ToTextTool(), new ToTrevniTool(), new TetherTool(), new TrevniCreateRandomTool(),
45 new TrevniMetadataTool(), new TrevniToJsonTool(), new SchemaNormalizationTool(),
46 new SchemaFingerprintTool() }) {
47 Tool prev = tools.put(tool.getName(), tool);
48 if (prev != null) {
49 throw new AssertionError("Two tools with identical names: " + tool + ", " + prev);
50 }
51 maxLen = Math.max(tool.getName().length(), maxLen);
52 }
53 }
54
55 public static void main(String[] args) throws Exception {
56 int rc = new Main().run(args);

Callers

nothing calls this directly

Calls 3

putMethod · 0.65
getNameMethod · 0.65
lengthMethod · 0.65

Tested by

no test coverage detected