MCPcopy Index your code
hub / github.com/apache/orc / run

Method run

java/tools/src/java/org/apache/orc/tools/KeyTool.java:82–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 void run() throws IOException {
83 KeyProvider provider =
84 CryptoUtils.getKeyProvider(conf, new SecureRandom());
85 if (provider == null) {
86 System.err.println("No key provider available.");
87 System.exit(1);
88 }
89 for(String keyName: provider.getKeyNames()) {
90 JsonWriter writer = new JsonWriter(this.writer);
91 printKey(writer, provider, keyName);
92 this.writer.write('\n');
93 }
94 this.writer.close();
95 }
96
97 private static CommandLine parseOptions(String[] args) throws ParseException {
98 Options options = new Options();

Callers 1

mainMethod · 0.95

Calls 5

getKeyProviderMethod · 0.95
getKeyNamesMethod · 0.95
printKeyMethod · 0.95
writeMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected