MCPcopy Create free account
hub / github.com/apache/orc / requireChar

Method requireChar

java/core/src/java/org/apache/orc/impl/ParserUtils.java:134–141  ·  view source on GitHub ↗
(ParserUtils.StringPosition source, char required)

Source from the content-addressed store, hash-verified

132 }
133
134 static void requireChar(ParserUtils.StringPosition source, char required) {
135 if (source.position >= source.length ||
136 source.value.charAt(source.position) != required) {
137 throw new IllegalArgumentException("Missing required char '" +
138 required + "' at " + source);
139 }
140 source.position += 1;
141 }
142
143 private static boolean consumeChar(ParserUtils.StringPosition source,
144 char ch) {

Callers 5

parseUnionMethod · 0.95
parseStructMethod · 0.95
parseTypeMethod · 0.95
parseKeysMethod · 0.95
parseMasksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected