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

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

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

Query.getEndDate介绍

暂无

代码示例

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

private void configDate(ShardQueryConfiguration config, Query settings) {
  final Date beginDate = settings.getBeginDate();
  if (null == beginDate) {
    throw new IllegalArgumentException("Begin date cannot be null");
  } else {
    config.setBeginDate(beginDate);
  }
  
  final Date endDate = settings.getEndDate();
  if (null == endDate) {
    throw new IllegalArgumentException("End date cannot be null");
  } else {
    config.setEndDate(endDate);
  }
  
  if (logger.isTraceEnabled()) {
    logger.trace("beginDate: " + beginDate + " , endDate: " + endDate);
  }
}

代码示例来源: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

x++;
if (query.getEndDate() != null) {
  ps.setTimestamp(x++, new Timestamp(query.getEndDate().getTime()));
} else {
  x++;

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

config.setEndDate(query.getEndDate());
config.setQueryString(query.getQuery());
config.setAuthorizations(auths);

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

@Override
@SuppressWarnings("unchecked")
public TransformIterator getTransformIterator(Query settings) {
  TransformIterator origIter = super.getTransformIterator(settings);
  QueryLogicTransformer transformer = super.getTransformer(settings);
  DashboardSummary summary = new DashboardSummary(settings.getEndDate());
  while (origIter.hasNext()) {
    EventBase event = (EventBase) transformer.transform(origIter.next());
    DashboardFields.addEvent(summary, event);
  }
  
  return new TransformIterator(Arrays.asList(summary).iterator(), this);
}

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

cfg.setEndDate(settings.getEndDate());

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

if (settings.getEndDate() != null) {
  config.setEndDate(settings.getEndDate());
} else {
  config.setEndDate(new Date(Long.MAX_VALUE));

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

config.setEndDate(settings.getEndDate());

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

private void setMetricsInfo() {
  
  BaseQueryMetric m = this.getMetric();
  
  // set the metric information
  m.setQueryType(this.getClass());
  m.setQueryId(this.queryId);
  m.setUser(this.user);
  m.setUserDN(this.query.getUserDN());
  if (this.query != null) {
    m.setColumnVisibility(this.query.getColumnVisibility());
    m.setQueryAuthorizations(this.query.getQueryAuthorizations());
    m.setQueryLogic(this.query.getQueryLogicName());
    m.setBeginDate(this.query.getBeginDate());
    m.setEndDate(this.query.getEndDate());
  }
}

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

final Date endDate = settings.getEndDate();
if (null == endDate) {
  throw new IllegalArgumentException("End date cannot be null");

相关文章