congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
DocValues.emptySortedSet
Code IndexAdd Tabnine to your IDE (free)

How to use
emptySortedSet
method
in
org.apache.lucene.index.DocValues

Best Java code snippets using org.apache.lucene.index.DocValues.emptySortedSet (Showing top 20 results out of 315)

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<PipelineAggregator> pipelineAggregators,
                      Map<String, Object> 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);
 }
}

org.apache.lucene.indexDocValuesemptySortedSet

Javadoc

An empty SortedDocValues which returns SortedSetDocValues#NO_MORE_ORDS for every document

Popular methods of DocValues

  • getSortedNumeric
    Returns SortedNumericDocValues for the field, or #emptySortedNumeric if it has none.
  • unwrapSingleton
    Returns a single-valued view of the SortedSetDocValues, if it was previously wrapped with #singleton
  • emptyBinary
    An empty BinaryDocValues which returns no documents
  • emptySorted
    An empty SortedDocValues which returns BytesRef#EMPTY_BYTES for every document
  • getBinary
    Returns BinaryDocValues for the field, or #emptyBinary if it has none.
  • getNumeric
    Returns NumericDocValues for the field, or #emptyNumeric() if it has none.
  • getSortedSet
    Returns SortedSetDocValues for the field, or #emptySortedSet if it has none.
  • singleton
    Returns a multi-valued view over the provided SortedDocValues
  • emptyNumeric
    An empty NumericDocValues which returns no documents
  • emptySortedNumeric
    An empty SortedNumericDocValues which returns zero values for every document
  • getSorted
    Returns SortedDocValues for the field, or #emptySorted if it has none.
  • isCacheable
    Returns true if the specified docvalues fields have not been updated
  • getSorted,
  • isCacheable,
  • checkField,
  • docsWithValue,
  • getDocsWithField,
  • unwrapSingletonBits,
  • emptyLegacySorted

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now