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

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

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

MetaData.hasConcreteIndex介绍

暂无

代码示例

代码示例来源:origin: floragunncom/search-guard

threadContext.putHeader(ConfigConstants.SG_CONF_REQUEST_HEADER, "true");
boolean searchGuardIndexExists = clusterService.state().metaData().hasConcreteIndex(this.searchguardIndex);

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

termVectorsRequest.routing(clusterState.metaData()
  .resolveIndexRouting(termVectorsRequest.parent(), termVectorsRequest.routing(), termVectorsRequest.index()));
if (!clusterState.metaData().hasConcreteIndex(termVectorsRequest.index())) {
  responses.set(i, new MultiTermVectorsItemResponse(null,
    new MultiTermVectorsResponse.Failure(termVectorsRequest.index(), termVectorsRequest.type(), termVectorsRequest.id(),

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

if (!state.metaData().hasConcreteIndex(concreteIndex)) {
  listener.onResponse(new TypesExistsResponse(false));
  return;

代码示例来源:origin: com.floragunn/search-guard-6

threadContext.putHeader(ConfigConstants.SG_CONF_REQUEST_HEADER, "true");
boolean searchGuardIndexExists = clusterService.state().metaData().hasConcreteIndex(this.searchguardIndex);

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

termVectorsRequest.startTime = System.currentTimeMillis();
termVectorsRequest.routing(clusterState.metaData().resolveIndexRouting(termVectorsRequest.routing(), termVectorsRequest.index()));
if (!clusterState.metaData().hasConcreteIndex(termVectorsRequest.index())) {
  responses.set(i, new MultiTermVectorsItemResponse(null, new MultiTermVectorsResponse.Failure(termVectorsRequest.index(),
      termVectorsRequest.type(), termVectorsRequest.id(), new IndexNotFoundException(termVectorsRequest.index()))));

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

TermVectorsRequest termVectorsRequest = request.requests.get(i);
termVectorsRequest.routing(clusterState.metaData().resolveIndexRouting(termVectorsRequest.parent(), termVectorsRequest.routing(), termVectorsRequest.index()));
if (!clusterState.metaData().hasConcreteIndex(termVectorsRequest.index())) {
  responses.set(i, new MultiTermVectorsItemResponse(null, new MultiTermVectorsResponse.Failure(termVectorsRequest.index(),
      termVectorsRequest.type(), termVectorsRequest.id(), new IndexNotFoundException(termVectorsRequest.index()))));

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

TermVectorsRequest termVectorsRequest = request.requests.get(i);
termVectorsRequest.routing(clusterState.metaData().resolveIndexRouting(termVectorsRequest.parent(), termVectorsRequest.routing(), termVectorsRequest.index()));
if (!clusterState.metaData().hasConcreteIndex(termVectorsRequest.index())) {
  responses.set(i, new MultiTermVectorsItemResponse(null, new MultiTermVectorsResponse.Failure(termVectorsRequest.index(),
      termVectorsRequest.type(), termVectorsRequest.id(), new IndexNotFoundException(termVectorsRequest.index()))));

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

TermVectorsRequest termVectorsRequest = request.requests.get(i);
termVectorsRequest.routing(clusterState.metaData().resolveIndexRouting(termVectorsRequest.parent(), termVectorsRequest.routing(), termVectorsRequest.index()));
if (!clusterState.metaData().hasConcreteIndex(termVectorsRequest.index())) {
  responses.set(i, new MultiTermVectorsItemResponse(null,
    new MultiTermVectorsResponse.Failure(termVectorsRequest.index(), termVectorsRequest.type(), termVectorsRequest.id(),

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

if (!state.metaData().hasConcreteIndex(concreteIndex)) {
  listener.onResponse(new TypesExistsResponse(false));
  return;

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

if (!state.metaData().hasConcreteIndex(concreteIndex)) {
  listener.onResponse(new TypesExistsResponse(false));
  return;

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

if (!currentState.metaData().hasConcreteIndex(index)) {
  throw new IndexNotFoundException(index);

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

if (!state.metaData().hasConcreteIndex(concreteIndex)) {
  listener.onResponse(new TypesExistsResponse(false));
  return;

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

if (!state.metaData().hasConcreteIndex(concreteIndex)) {
  listener.onResponse(new TypesExistsResponse(false));
  return;

相关文章