datawave.webservice.query.Query.getParameters()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(134)

本文整理了Java中datawave.webservice.query.Query.getParameters方法的一些代码示例,展示了Query.getParameters的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getParameters方法的具体详情如下:
包路径:datawave.webservice.query.Query
类名称:Query
方法名:getParameters

Query.getParameters介绍

暂无

代码示例

代码示例来源:origin: NationalSecurityAgency/datawave

@Override
public void setEventQueryDataDecoratorTransformer(EventQueryDataDecoratorTransformer eventQueryDataDecoratorTransformer) {
  this.eventQueryDataDecoratorTransformer = eventQueryDataDecoratorTransformer;
  
  Set<Parameter> parameters = this.settings.getParameters();
  if (eventQueryDataDecoratorTransformer != null && parameters != null) {
    List<String> requestedDecorators = new ArrayList<>();
    for (Parameter p : parameters) {
      if (p.getParameterName().equals("data.decorators")) {
        String decoratorString = p.getParameterValue();
        if (decoratorString != null) {
          requestedDecorators.addAll(Arrays.asList(decoratorString.split(",")));
          this.eventQueryDataDecoratorTransformer.setRequestedDecorators(requestedDecorators);
        }
      }
    }
  }
}

代码示例来源:origin: NationalSecurityAgency/datawave

@Override
public String toString() {
  
  String host = System.getProperty("jboss.host.name");
  
  return new StringBuilder().append("host:").append(host).append(", id:").append(this.getSettings().getId()).append(", query:")
          .append(StringEscapeUtils.escapeHtml(this.getSettings().getQuery())).append(", auths:")
          .append(this.getSettings().getQueryAuthorizations()).append(", user:").append(this.getSettings().getOwner()).append(", queryLogic:")
          .append(this.getSettings().getQueryLogicName()).append(", name:").append(this.getSettings().getQueryName()).append(", pagesize:")
          .append(this.getSettings().getPagesize()).append(", begin:").append(this.getSettings().getBeginDate()).append(", end:")
          .append(this.getSettings().getEndDate()).append(", expiration:").append(this.getSettings().getExpirationDate()).append(", params: ")
          .append(this.getSettings().getParameters()).append(", callTime: ")
          .append((this.getTimeOfCurrentCall() == 0) ? 0 : System.currentTimeMillis() - this.getTimeOfCurrentCall()).toString();
  
}

代码示例来源:origin: NationalSecurityAgency/datawave

public void setEventQueryDataDecoratorTransformer(EventQueryDataDecoratorTransformer eventQueryDataDecoratorTransformer) {
  this.eventQueryDataDecoratorTransformer = eventQueryDataDecoratorTransformer;
  
  Set<Parameter> parameters = this.settings.getParameters();
  if (eventQueryDataDecoratorTransformer != null && parameters != null) {
    List<String> requestedDecorators = new ArrayList<>();
    for (Parameter p : parameters) {
      if (p.getParameterName().equals("data.decorators")) {
        String decoratorString = p.getParameterValue();
        if (decoratorString != null) {
          requestedDecorators.addAll(Arrays.asList(decoratorString.split(",")));
          this.eventQueryDataDecoratorTransformer.setRequestedDecorators(requestedDecorators);
        }
      }
    }
    // Ensure that the requested EventQueryDataDecorator instances have non-null ResponseObjectFactory
    // Otherwise, NPE will ensue...
    if (!requestedDecorators.isEmpty() && this.eventQueryDataDecoratorTransformer.getDataDecorators() != null) {
      for (String requestedDecorator : requestedDecorators) {
        if (this.eventQueryDataDecoratorTransformer.getDataDecorators().containsKey(requestedDecorator)) {
          EventQueryDataDecorator edd = this.eventQueryDataDecoratorTransformer.getDataDecorators().get(requestedDecorator);
          if (edd.getResponseObjectFactory() == null) {
            edd.setResponseObjectFactory(this.responseObjectFactory);
          }
        }
      }
    }
  }
}

代码示例来源:origin: NationalSecurityAgency/datawave

Set<QueryImpl.Parameter> parameterSet = config.getQuery().getParameters();
for (QueryImpl.Parameter parameter : parameterSet) {
  String name = parameter.getParameterName();

代码示例来源:origin: NationalSecurityAgency/datawave

if (settings.getParameters() != null) {
  QueryImpl.Parameter p = settings.findParameter(INCLUDE_STATS);
  if (p != null && !p.getParameterValue().isEmpty()) {

代码示例来源:origin: NationalSecurityAgency/datawave

@Override
public EdgeQueryConfiguration parseParameters(Query settings) {
  super.parseParameters(settings);
  if (settings.getParameters() != null) {

代码示例来源:origin: NationalSecurityAgency/datawave

Set<Parameter> origParams = this.settings.getParameters();
for (Parameter p : origParams) {
  if (p.getParameterName().equals(QueryParameters.QUERY_SYNTAX) == false) {

代码示例来源:origin: NationalSecurityAgency/datawave

log.debug("Query parameters set to " + settings.getParameters());

代码示例来源:origin: NationalSecurityAgency/datawave

log.debug("Query parameters set to " + settings.getParameters());

相关文章