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

Method parseInt

java/core/src/java/org/apache/orc/impl/ParserUtils.java:70–85  ·  view source on GitHub ↗
(ParserUtils.StringPosition source)

Source from the content-addressed store, hash-verified

68 }
69
70 static int parseInt(ParserUtils.StringPosition source) {
71 int start = source.position;
72 int result = 0;
73 while (source.position < source.length) {
74 char ch = source.value.charAt(source.position);
75 if (!Character.isDigit(ch)) {
76 break;
77 }
78 result = result * 10 + (ch - '0');
79 source.position += 1;
80 }
81 if (source.position == start) {
82 throw new IllegalArgumentException("Missing integer at " + source);
83 }
84 return result;
85 }
86
87 public static String parseName(ParserUtils.StringPosition source) {
88 if (source.position == source.length) {

Callers 15

parseTypeMethod · 0.95
mainMethod · 0.80
mainMethod · 0.80
convertMethod · 0.80
getIntOptionMethod · 0.80
StructTypeClass · 0.80
getIntMethod · 0.80
findColumnMethod · 0.80
getMethod · 0.80
RedactMaskFactoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected