Examples of requiresContext()


Examples of org.elasticsearch.index.mapper.core.CompletionFieldMapper.requiresContext()

       
        suggestion.mapper((CompletionFieldMapper)mapperService.smartNameFieldMapper(suggestion.getField()));

        CompletionFieldMapper mapper = suggestion.mapper();
        if (mapper != null) {
            if (mapper.requiresContext()) {
                if (contextParser == null) {
                    throw new ElasticsearchIllegalArgumentException("suggester [completion] requires context to be setup");
                } else {
                    contextParser.nextToken();
                    List<ContextQuery> contextQueries = ContextQuery.parseQueries(mapper.getContextMapping(), contextParser);
View Full Code Here

Examples of org.teiid.query.function.FunctionDescriptor.requiresContext()

    // Evaluate args
    Expression[] args = function.getArgs();
      Object[] values = null;
      int start = 0;
     
      if (fd.requiresContext()) {
      values = new Object[args.length+1];
          values[0] = context;
          start = 1;
      }
      else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.