本文整理了Java中com.hurence.logisland.record.Record.getTime
方法的一些代码示例,展示了Record.getTime
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getTime
方法的具体详情如下:
包路径:com.hurence.logisland.record.Record
类名称:Record
方法名:getTime
暂无
代码示例来源:origin: com.hurence.logisland/logisland-api
public StandardRecord(Record toClone) {
this();
this.setType(toClone.getType());
this.setTime(toClone.getTime());
this.setId(UUID.randomUUID().toString());
toClone.getAllFieldsSorted().forEach(this::setField);
this.errors = (List<String>) toClone.getErrors();
}
代码示例来源:origin: com.hurence.logisland/logisland-solr_6_4
final long firstTS = records.get(0).getTime().getTime();
long tmp = records.get(records.size() - 1).getTime().getTime();
final long lastTS = tmp == firstTS ? firstTS + 1 : firstTS;
.filter(record -> record.hasField(entry.getKey()) && record.getField(entry.getKey()).isSet())
.map(record ->
new AbstractMap.SimpleEntry<>(record.getTime().getTime(),
record.getField(entry.getKey()).asDouble())
).collect(Collectors.toList());
代码示例来源:origin: com.hurence.logisland/logisland-common-processors-plugin
Record cachedThreshold = datastoreClientService.get(defaultCollection, new StandardRecord().setId(key));
if (cachedThreshold != null) {
Long duration = System.currentTimeMillis() - cachedThreshold.getTime().getTime();
if (duration > recordTTL) {
datastoreClientService.remove(defaultCollection, cachedThreshold, false);
Date firstThresholdTime = cachedThreshold.getTime();
cachedThreshold.setField(FieldDictionary.RECORD_COUNT, FieldType.LONG, count + 1)
.setTime(firstThresholdTime)
内容来源于网络,如有侵权,请联系作者删除!