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

x33g5p2x  于2022-01-25 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(77)

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

MetaData.indexGraveyard介绍

[英]The collection of index deletions in the cluster.
[中]群集中索引删除的集合。

代码示例

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

private List<Index> indicesDeletedFromTombstones() {
  // We look at the full tombstones list to see which indices need to be deleted.  In the case of
  // a valid previous cluster state, indicesDeletedFromClusterState() will be used to get the deleted
  // list, so a diff doesn't make sense here.  When a node (re)joins the cluster, its possible for it
  // to re-process the same deletes or process deletes about indices it never knew about.  This is not
  // an issue because there are safeguards in place in the delete store operation in case the index
  // folder doesn't exist on the file system.
  List<IndexGraveyard.Tombstone> tombstones = state.metaData().indexGraveyard().getTombstones();
  return tombstones.stream().map(IndexGraveyard.Tombstone::getIndex).collect(Collectors.toList());
}

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

final List<IndexMetaData> indexMetaDataList = metaStateService.loadIndicesStates(excludeIndexPathIds::contains);
Map<Index, IndexMetaData> newIndices = new HashMap<>(indexMetaDataList.size());
final IndexGraveyard graveyard = metaData.indexGraveyard();
for (IndexMetaData indexMetaData : indexMetaDataList) {
  if (metaData.hasIndex(indexMetaData.getIndex().getName())) {

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

private List<Index> indicesDeletedFromTombstones() {
  // We look at the full tombstones list to see which indices need to be deleted.  In the case of
  // a valid previous cluster state, indicesDeletedFromClusterState() will be used to get the deleted
  // list, so a diff doesn't make sense here.  When a node (re)joins the cluster, its possible for it
  // to re-process the same deletes or process deletes about indices it never knew about.  This is not
  // an issue because there are safeguards in place in the delete store operation in case the index
  // folder doesn't exist on the file system.
  List<IndexGraveyard.Tombstone> tombstones = state.metaData().indexGraveyard().getTombstones();
  return tombstones.stream().map(IndexGraveyard.Tombstone::getIndex).collect(Collectors.toList());
}

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

private List<Index> indicesDeletedFromTombstones() {
  // We look at the full tombstones list to see which indices need to be deleted.  In the case of
  // a valid previous cluster state, indicesDeletedFromClusterState() will be used to get the deleted
  // list, so a diff doesn't make sense here.  When a node (re)joins the cluster, its possible for it
  // to re-process the same deletes or process deletes about indices it never knew about.  This is not
  // an issue because there are safeguards in place in the delete store operation in case the index
  // folder doesn't exist on the file system.
  List<IndexGraveyard.Tombstone> tombstones = state.metaData().indexGraveyard().getTombstones();
  return tombstones.stream().map(IndexGraveyard.Tombstone::getIndex).collect(Collectors.toList());
}

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

private List<Index> indicesDeletedFromTombstones() {
  // We look at the full tombstones list to see which indices need to be deleted.  In the case of
  // a valid previous cluster state, indicesDeletedFromClusterState() will be used to get the deleted
  // list, so a diff doesn't make sense here.  When a node (re)joins the cluster, its possible for it
  // to re-process the same deletes or process deletes about indices it never knew about.  This is not
  // an issue because there are safeguards in place in the delete store operation in case the index
  // folder doesn't exist on the file system.
  List<IndexGraveyard.Tombstone> tombstones = state.metaData().indexGraveyard().getTombstones();
  return tombstones.stream().map(IndexGraveyard.Tombstone::getIndex).collect(Collectors.toList());
}

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

final List<IndexMetaData> indexMetaDataList = metaStateService.loadIndicesStates(excludeIndexPathIds::contains);
Map<Index, IndexMetaData> newIndices = new HashMap<>(indexMetaDataList.size());
final IndexGraveyard graveyard = metaData.indexGraveyard();
for (IndexMetaData indexMetaData : indexMetaDataList) {
  if (metaData.hasIndex(indexMetaData.getIndex().getName())) {

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

final List<IndexMetaData> indexMetaDataList = metaStateService.loadIndicesStates(excludeIndexPathIds::contains);
Map<Index, IndexMetaData> newIndices = new HashMap<>(indexMetaDataList.size());
final IndexGraveyard graveyard = metaData.indexGraveyard();
for (IndexMetaData indexMetaData : indexMetaDataList) {
  if (metaData.hasIndex(indexMetaData.getIndex().getName())) {

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

final List<IndexMetaData> indexMetaDataList = metaStateService.loadIndicesStates(excludeIndexPathIds::contains);
Map<Index, IndexMetaData> newIndices = new HashMap<>(indexMetaDataList.size());
final IndexGraveyard graveyard = metaData.indexGraveyard();
for (IndexMetaData indexMetaData : indexMetaDataList) {
  if (metaData.hasIndex(indexMetaData.getIndex().getName())) {

相关文章

微信公众号

最新文章

更多