MCPcopy Create free account
hub / github.com/BaseXdb/basex / run

Method run

basex-core/src/main/java/org/basex/core/cmd/InfoStorage.java:29–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27 }
28
29 @Override
30 protected boolean run() throws IOException {
31 final String first = args[0], second = args[1];
32
33 final Data data = context.data();
34 final DataPrinter dp = new DataPrinter(data);
35 int start = 0, end = 1000;
36 if(!first.isEmpty()) {
37 start = toInt(first);
38 end = (second.isEmpty() ? start : toInt(second)) + 1;
39 }
40 dp.add(start, end);
41 out.print(dp.finish());
42 return true;
43 }
44
45 @Override
46 public void addLocks() {

Callers

nothing calls this directly

Calls 6

addMethod · 0.95
finishMethod · 0.95
printMethod · 0.65
dataMethod · 0.45
isEmptyMethod · 0.45
toIntMethod · 0.45

Tested by

no test coverage detected