热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

org.apache.lucene.index.DocValues.emptySortedSet()方法的使用及代码示例

本文整理了Java中org.apache.lucene.index.DocValues.emptySortedSet()方法的一些代码示例,展示了DocVa

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

DocValues.emptySortedSet介绍

[英]An empty SortedDocValues which returns SortedSetDocValues#NO_MORE_ORDS for every document
[中]一个空的SortedDocValues,返回SortedSetDocValues,每个文档不包含更多单词

代码示例

代码示例来源:origin: neo4j/neo4j

@Override
public SortedSetDocValues getSortedSetDocValues( String field )
{
return DocValues.emptySortedSet();
}

代码示例来源:origin: org.apache.lucene/lucene-core

/**
* Returns SortedSetDocValues for the field, or {@link #emptySortedSet} if it has none.
* @return docvalues instance, or an empty instance if {@code field} does not exist in this reader.
* @throws IllegalStateException if {@code field} exists, but was not indexed with docvalues.
* @throws IllegalStateException if {@code field} has docvalues, but the type is not {@link DocValuesType#SORTED_SET}
* or {@link DocValuesType#SORTED}.
* @throws IOException if an I/O error occurs.
*/
public static SortedSetDocValues getSortedSet(LeafReader reader, String field) throws IOException {
SortedSetDocValues dv = reader.getSortedSetDocValues(field);
if (dv == null) {
SortedDocValues sorted = reader.getSortedDocValues(field);
if (sorted == null) {
checkField(reader, field, DocValuesType.SORTED, DocValuesType.SORTED_SET);
return emptySortedSet();
}
dv = singleton(sorted);
}
return dv;
}

代码示例来源:origin: org.apache.lucene/lucene-core

values = DocValues.emptySortedSet();

代码示例来源:origin: org.apache.lucene/lucene-core

SortedSetDocValues v = context.reader().getSortedSetDocValues(field);
if (v == null) {
v = DocValues.emptySortedSet();
} else {
anyReal = true;

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

@Override
public SortedSetDocValues getOrdinalsValues() {
return DocValues.emptySortedSet();
}
};

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

@Override
public SortedSetDocValues globalOrdinalsValues(LeafReaderContext context) {
return DocValues.emptySortedSet();
}

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

@Override
public SortedSetDocValues ordinalsValues(LeafReaderContext context) {
return DocValues.emptySortedSet();
}

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

@Override
public SortedSetDocValues getOrdinalsValues() {
return DocValues.emptySortedSet();
}

代码示例来源:origin: org.apache.lucene/lucene-core

values = DocValues.emptySortedSet();

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

return select(DocValues.emptySortedSet());

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

public GlobalOrdinalsStringTermsAggregator(String name, AggregatorFactories factories,
ValuesSource.Bytes.WithOrdinals valuesSource,
BucketOrder order,
DocValueFormat format,
BucketCountThresholds bucketCountThresholds,
IncludeExclude.OrdinalsFilter includeExclude,
SearchContext context,
Aggregator parent,
boolean remapGlobalOrds,
SubAggCollectionMode collectionMode,
boolean showTermDocCountError,
List pipelineAggregators,
Map metaData) throws IOException {
super(name, factories, context, parent, order, format, bucketCountThresholds, collectionMode, showTermDocCountError,
pipelineAggregators, metaData);
this.valuesSource = valuesSource;
this.includeExclude = includeExclude;
final IndexReader reader = context.searcher().getIndexReader();
final SortedSetDocValues values = reader.leaves().size() > 0 ?
valuesSource.globalOrdinalsValues(context.searcher().getIndexReader().leaves().get(0)) : DocValues.emptySortedSet();
this.valueCount = values.getValueCount();
this.lookupGlobalOrd = values::lookupOrd;
this.acceptedGlobalOrdinals = includeExclude != null ? includeExclude.acceptedGlobalOrdinals(values) : null;
this.bucketOrds = remapGlobalOrds ? new LongHash(1, context.bigArrays()) : null;
}

代码示例来源:origin: apache/tika

v = DocValues.emptySortedSet();

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

@Override
public RandomAccessOrds getOrdinalsValues() {
return DocValues.emptySortedSet();
}
};

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

@Override
public SortedSetDocValues getOrdinalsValues() {
return DocValues.emptySortedSet();
}
};

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

@Override
public SortedSetDocValues getOrdinalsValues() {
return DocValues.emptySortedSet();
}
};

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

@Override
public RandomAccessOrds getOrdinalsValues() {
return DocValues.emptySortedSet();
}
};

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

@Override
public RandomAccessOrds getOrdinalsValues() {
return DocValues.emptySortedSet();
}

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

@Override
public RandomAccessOrds globalOrdinalsValues(LeafReaderContext context) {
return DocValues.emptySortedSet();
}

代码示例来源:origin: org.infinispan/infinispan-embedded-query

/** Returns a SortedSetDocValues view of this instance */
public SortedSetDocValues iterator(LeafReader reader) throws IOException {
if (isEmpty()) {
return DocValues.emptySortedSet();
} else {
return new Iterator(reader);
}
}

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

/** Returns a SortedSetDocValues view of this instance */
public SortedSetDocValues iterator(LeafReader reader) throws IOException {
if (isEmpty()) {
return DocValues.emptySortedSet();
} else {
return new Iterator(reader);
}
}

推荐阅读
author-avatar
钟钟来了_960
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有