Package org.apache.lucene.index
Class EmptyDocValuesProducer
- java.lang.Object
-
- org.apache.lucene.codecs.DocValuesProducer
-
- org.apache.lucene.index.EmptyDocValuesProducer
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public abstract class EmptyDocValuesProducer extends DocValuesProducer
Abstract base class implementing aDocValuesProducerthat has no doc values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmptyDocValuesProducer()Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckIntegrity()Checks consistency of this producervoidclose()Closes this doc values producer.BinaryDocValuesgetBinary(FieldInfo field)ReturnsBinaryDocValuesfor this field.NumericDocValuesgetNumeric(FieldInfo field)ReturnsNumericDocValuesfor this field.SortedDocValuesgetSorted(FieldInfo field)ReturnsSortedDocValuesfor this field.SortedNumericDocValuesgetSortedNumeric(FieldInfo field)ReturnsSortedNumericDocValuesfor this field.SortedSetDocValuesgetSortedSet(FieldInfo field)ReturnsSortedSetDocValuesfor this field.-
Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
-
-
-
Method Detail
-
getNumeric
public NumericDocValues getNumeric(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.NUMERIC. The return value is nevernull.- Specified by:
getNumericin classDocValuesProducer- Throws:
IOException
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsBinaryDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.BINARY. The return value is nevernull.- Specified by:
getBinaryin classDocValuesProducer- Throws:
IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsSortedDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED. The return value is nevernull.- Specified by:
getSortedin classDocValuesProducer- Throws:
IOException
-
getSortedNumeric
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsSortedNumericDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_NUMERIC. The return value is nevernull.- Specified by:
getSortedNumericin classDocValuesProducer- Throws:
IOException
-
getSortedSet
public SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
Description copied from class:DocValuesProducerReturnsSortedSetDocValuesfor this field. The returned instance need not be thread-safe: it will only be used by a single thread. The behavior is undefined if the doc values type of the given field is notDocValuesType.SORTED_SET. The return value is nevernull.- Specified by:
getSortedSetin classDocValuesProducer- Throws:
IOException
-
checkIntegrity
public void checkIntegrity()
Description copied from class:DocValuesProducerChecks consistency of this producerNote that this may be costly in terms of I/O, e.g. may involve computing a checksum value against large data files.
- Specified by:
checkIntegrityin classDocValuesProducer
-
close
public void close()
Closes this doc values producer.
-
-