MCPcopy Create free account
hub / github.com/apache/nutch / getArg

Method getArg

src/java/org/apache/nutch/parse/ParseStatusUtils.java:63–76  ·  view source on GitHub ↗
(ParseStatus status, int n)

Source from the content-addressed store, hash-verified

61 }
62
63 public static String getArg(ParseStatus status, int n) {
64 List<CharSequence> args = status.getArgs();
65 if (args == null) {
66 return null;
67 }
68 int i = 0;
69 for (CharSequence arg : args) {
70 if (i == n) {
71 return TableUtil.toString(arg);
72 }
73 i++;
74 }
75 return null;
76 }
77
78 public static Parse getEmptyParse(Exception e, Configuration conf) {
79 ParseStatus status = ParseStatus.newBuilder().build();

Callers 1

successRedirectMethod · 0.95

Calls 2

toStringMethod · 0.95
getArgsMethod · 0.45

Tested by

no test coverage detected