mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
part1 of opensearch
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
package io.nosqlbench.adapters.api.templating;
|
||||
|
||||
public interface TriFunction <A,B,C> {
|
||||
public A apply(A a,B b,C c);
|
||||
}
|
||||
@@ -1093,5 +1093,15 @@ public class ParsedTemplateMap implements LongFunction<Map<String, ?>>, StaticFi
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public boolean isDefinedExactly(String[] fields) {
|
||||
for (String field : fields) {
|
||||
if (isUndefined(field)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return statics.size() + dynamics.size() == fields.length;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user