com.hurence.logisland.record.Record.getTime()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(139)

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

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)

相关文章