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

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

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

Query.getQueryName介绍

暂无

代码示例

代码示例来源: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 static <T extends Query> Mutation toMutation(T query, ColumnVisibility vis) {
  // Store by sid for backwards compatibility
  Mutation m = new Mutation(query.getOwner());
  try {
    @SuppressWarnings("unchecked")
    Schema<T> schema = (Schema<T>) RuntimeSchema.getSchema(query.getClass());
    byte[] bytes = ProtobufIOUtil.toByteArray(query, schema, BUFFER.get());
    m.put(query.getQueryName(), query.getId() + NULL_BYTE + query.getClass().getName(), vis, query.getExpirationDate().getTime(), new Value(bytes));
    return m;
  } finally {
    BUFFER.get().clear();
  }
}

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

ps.setString(x++, query.getQueryName());
ps.setString(x++, query.getOwner());
ps.setString(x++, query.getId().toString());

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

Key skey = new Key(query.getOwner(), query.getQueryName(), query.getId().toString());
Key ekey = new Key(query.getOwner(), query.getQueryName(), query.getId() + "\u0001");
Range range = new Range(skey, ekey);
log.info("Deleting query range: " + range);

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

public QueryInformation(Query query, String queryStr) {
  Preconditions.checkNotNull(query);
  queryId = testAndSetOption(query.getId());
  queryLogicName = testAndSetOption(query.getQueryLogicName());
  queryName = testAndSetOption(query.getQueryName());
  if (null == queryStr)
    queryString = testAndSetOption(query.getQuery());
  else
    queryString = testAndSetOption(queryStr);
  queryUser = testAndSetOption(query.getOwner());
}

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

this.auths = auths;
this.settings = settings.duplicate(settings.getQueryName() + "-chunk");
chunker.setBaseQuery(this.settings);

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

public HudQuerySummary build(Query query) {
  HudQuerySummary summary = new HudQuerySummary();
  summary.setQueryLogicName(query.getQueryLogicName());
  summary.setId(query.getId().toString());
  summary.setQueryName(query.getQueryName());
  summary.setUserDN(query.getUserDN());
  summary.setQuery(query.getQuery());
  summary.setQueryAuthorizations(query.getQueryAuthorizations());
  summary.setExpirationDate(query.getExpirationDate().getTime());
  return summary;
}

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

switch (persistenceMode) {
  case PERSISTENT:
    if (q.getQueryName() == null)
      throw new BadRequestQueryException(DatawaveErrorCode.QUERY_NAME_REQUIRED);
    break;
Query duplicate = q.duplicate(q.getQueryName());
duplicate.setId(q.getId());

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

q = originalQuery.duplicate(originalQuery.getQueryName());
q.setId(originalQuery.getId());
q.setUncaughtExceptionHandler(new QueryUncaughtExceptionHandler());

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

this.setModelTableName(other.getModelTableName());
this.setLimitTermExpansionToModel(other.isExpansionLimitedToModelContents());
this.setQuery(null == other.getQuery() ? null : other.getQuery().duplicate(other.getQuery().getQueryName()));
this.setCompressServerSideResults(other.isCompressServerSideResults());
this.setIndexOnlyFilterFunctionsEnabled(other.isIndexOnlyFilterFunctionsEnabled());

相关文章