org.elasticsearch.cluster.metadata.IndexMetaData.getCreationDate()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(73)

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

IndexMetaData.getCreationDate介绍

暂无

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

static Map<String, Boolean> evaluateConditions(final Collection<Condition> conditions,
                        final DocsStats docsStats, final IndexMetaData metaData) {
  final long numDocs = docsStats == null ? 0 : docsStats.getCount();
  final long indexSize = docsStats == null ? 0 : docsStats.getTotalSizeInBytes();
  final Condition.Stats stats = new Condition.Stats(numDocs, metaData.getCreationDate(), new ByteSizeValue(indexSize));
  return conditions.stream()
    .map(condition -> condition.evaluate(stats))
    .collect(Collectors.toMap(result -> result.condition.toString(), result -> result.matched));
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

static Set<Condition.Result> evaluateConditions(final Set<Condition> conditions,
                        final DocsStats docsStats, final IndexMetaData metaData) {
  final long numDocs = docsStats == null ? 0 : docsStats.getCount();
  final Condition.Stats stats = new Condition.Stats(numDocs, metaData.getCreationDate());
  return conditions.stream()
    .map(condition -> condition.evaluate(stats))
    .collect(Collectors.toSet());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

static Map<String, Boolean> evaluateConditions(final Collection<Condition> conditions,
                        final DocsStats docsStats, final IndexMetaData metaData) {
  final long numDocs = docsStats == null ? 0 : docsStats.getCount();
  final long indexSize = docsStats == null ? 0 : docsStats.getTotalSizeInBytes();
  final Condition.Stats stats = new Condition.Stats(numDocs, metaData.getCreationDate(), new ByteSizeValue(indexSize));
  return conditions.stream()
    .map(condition -> condition.evaluate(stats))
    .collect(Collectors.toMap(result -> result.condition.toString(), result -> result.matched));
}

代码示例来源:origin: apache/servicemix-bundles

final long numDocs = docsStats == null ? 0 : docsStats.getCount();
final long indexSize = docsStats == null ? 0 : docsStats.getTotalSizeInBytes();
final Condition.Stats stats = new Condition.Stats(numDocs, metaData.getCreationDate(), new ByteSizeValue(indexSize));
return conditions.stream()
  .map(condition -> condition.evaluate(stats))

代码示例来源:origin: org.elasticsearch/elasticsearch

table.addCell(primaryStats.getDocs() == null ? null : primaryStats.getDocs().getDeleted());
table.addCell(indexMetaData.getCreationDate());
ZonedDateTime creationTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(indexMetaData.getCreationDate()), ZoneOffset.UTC);
table.addCell(DateFormatters.forPattern("strict_date_time").format(creationTime));

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

table.addCell(primaryStats.getDocs() == null ? null : primaryStats.getDocs().getDeleted());
table.addCell(indexMetaData.getCreationDate());
ZonedDateTime creationTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(indexMetaData.getCreationDate()), ZoneOffset.UTC);
table.addCell(DateFormatters.forPattern("strict_date_time").format(creationTime));

代码示例来源:origin: apache/servicemix-bundles

table.addCell(primaryStats.getDocs() == null ? null : primaryStats.getDocs().getDeleted());
table.addCell(indexMetaData.getCreationDate());
ZonedDateTime creationTime = ZonedDateTime.ofInstant(Instant.ofEpochMilli(indexMetaData.getCreationDate()), ZoneOffset.UTC);
table.addCell(DateFormatters.forPattern("strict_date_time").format(creationTime));

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

table.addCell(indexStats == null ? null : indexStats.getPrimaries().getDocs().getDeleted());
table.addCell(indexMetaData.getCreationDate());
table.addCell(new DateTime(indexMetaData.getCreationDate(), DateTimeZone.UTC));

代码示例来源:origin: harbby/presto-connectors

table.addCell(indexStats == null ? null : indexStats.getPrimaries().getDocs().getDeleted());
table.addCell(indexMetaData.getCreationDate());
table.addCell(new DateTime(indexMetaData.getCreationDate(), DateTimeZone.UTC));

相关文章

微信公众号

最新文章

更多

IndexMetaData类方法