本文整理了Java中datawave.webservice.query.Query.getBeginDate
方法的一些代码示例,展示了Query.getBeginDate
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getBeginDate
方法的具体详情如下:
包路径:datawave.webservice.query.Query
类名称:Query
方法名:getBeginDate
暂无
代码示例来源: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
} else {
ps.setString(x++, query.getQuery());
if (query.getBeginDate() != null) {
ps.setTimestamp(x++, new Timestamp(query.getBeginDate().getTime()));
} else {
x++;
代码示例来源:origin: NationalSecurityAgency/datawave
config.setBeginDate(query.getBeginDate());
config.setEndDate(query.getEndDate());
config.setQueryString(query.getQuery());
代码示例来源:origin: NationalSecurityAgency/datawave
cfg.setQueryString(queryString);
cfg.setBeginDate(settings.getBeginDate());
cfg.setEndDate(settings.getEndDate());
代码示例来源:origin: NationalSecurityAgency/datawave
if (settings.getBeginDate() != null) {
config.setBeginDate(settings.getBeginDate());
} else {
config.setBeginDate(new Date(0));
代码示例来源:origin: NationalSecurityAgency/datawave
config.setBeginDate(settings.getBeginDate());
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 beginDate = settings.getBeginDate();
if (null == beginDate) {
throw new IllegalArgumentException("Begin date cannot be null");
内容来源于网络,如有侵权,请联系作者删除!