use of com.hazelcast.sql.impl.extract.QueryExtractor in project hazelcast by hazelcast.
the class RowProjector method createExtractors.
private static QueryExtractor[] createExtractors(QueryTarget target, String[] paths, QueryDataType[] types) {
QueryExtractor[] extractors = new QueryExtractor[paths.length];
for (int i = 0; i < paths.length; i++) {
String path = paths[i];
QueryDataType type = types[i];
extractors[i] = target.createExtractor(path, type);
}
return extractors;
}
use of com.hazelcast.sql.impl.extract.QueryExtractor in project hazelcast by hazelcast.
the class KvRowProjector method createExtractors.
private static QueryExtractor[] createExtractors(QueryPath[] paths, QueryDataType[] types, QueryTarget keyTarget, QueryTarget valueTarget) {
QueryExtractor[] extractors = new QueryExtractor[paths.length];
for (int i = 0; i < paths.length; i++) {
QueryPath path = paths[i];
QueryDataType type = types[i];
extractors[i] = path.isKey() ? keyTarget.createExtractor(path.getPath(), type) : valueTarget.createExtractor(path.getPath(), type);
}
return extractors;
}
Aggregations