MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getByName

Method getByName

src/query/expression/ExpressionFactory.java:87–94  ·  view source on GitHub ↗

Returns the expression function given the name @param function The name of the expression to use @return The expression when located @throws UnsupportedOperationException if the requested function hasn't been stored in the map.

(final String function)

Source from the content-addressed store, hash-verified

85 * been stored in the map.
86 */
87 public static Expression getByName(final String function) {
88 final Expression expression = available_functions.get(function);
89 if (expression == null) {
90 throw new UnsupportedOperationException("Function " + function
91 + " has not been implemented");
92 }
93 return expression;
94 }
95}

Callers 9

getByNameMethod · 0.95
getByNameNullNameMethod · 0.95
getByNameEmptyNameMethod · 0.95
addFunctionMethod · 0.95
ExpressionTreeMethod · 0.95
parseMethod · 0.95
launchTSDMethod · 0.45
mainMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 5

getByNameMethod · 0.76
getByNameNullNameMethod · 0.76
getByNameEmptyNameMethod · 0.76
addFunctionMethod · 0.76