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
,Accountable
public abstract class EmptyDocValuesProducer extends DocValuesProducer
Abstract base class implementing aDocValuesProducer
that has no doc values.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EmptyDocValuesProducer()
Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkIntegrity()
Checks consistency of this producervoid
close()
Closes this doc values producer.BinaryDocValues
getBinary(FieldInfo field)
ReturnsBinaryDocValues
for this field.NumericDocValues
getNumeric(FieldInfo field)
ReturnsNumericDocValues
for this field.SortedDocValues
getSorted(FieldInfo field)
ReturnsSortedDocValues
for this field.SortedNumericDocValues
getSortedNumeric(FieldInfo field)
ReturnsSortedNumericDocValues
for this field.SortedSetDocValues
getSortedSet(FieldInfo field)
ReturnsSortedSetDocValues
for this field.long
ramBytesUsed()
Return the memory usage of this object in bytes.-
Methods inherited from class org.apache.lucene.codecs.DocValuesProducer
getMergeInstance
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.lucene.util.Accountable
getChildResources
-
-
-
-
Method Detail
-
getNumeric
public NumericDocValues getNumeric(FieldInfo field) throws IOException
Description copied from class:DocValuesProducer
ReturnsNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getNumeric
in classDocValuesProducer
- Throws:
IOException
-
getBinary
public BinaryDocValues getBinary(FieldInfo field) throws IOException
Description copied from class:DocValuesProducer
ReturnsBinaryDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getBinary
in classDocValuesProducer
- Throws:
IOException
-
getSorted
public SortedDocValues getSorted(FieldInfo field) throws IOException
Description copied from class:DocValuesProducer
ReturnsSortedDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSorted
in classDocValuesProducer
- Throws:
IOException
-
getSortedNumeric
public SortedNumericDocValues getSortedNumeric(FieldInfo field) throws IOException
Description copied from class:DocValuesProducer
ReturnsSortedNumericDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedNumeric
in classDocValuesProducer
- Throws:
IOException
-
getSortedSet
public SortedSetDocValues getSortedSet(FieldInfo field) throws IOException
Description copied from class:DocValuesProducer
ReturnsSortedSetDocValues
for this field. The returned instance need not be thread-safe: it will only be used by a single thread.- Specified by:
getSortedSet
in classDocValuesProducer
- Throws:
IOException
-
checkIntegrity
public void checkIntegrity()
Description copied from class:DocValuesProducer
Checks 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:
checkIntegrity
in classDocValuesProducer
-
close
public void close()
Closes this doc values producer.
-
ramBytesUsed
public long ramBytesUsed()
Description copied from interface:Accountable
Return the memory usage of this object in bytes. Negative values are illegal.
-
-