Class DirectPostingsFormat.DirectFields

java.lang.Object
org.apache.lucene.index.Fields
org.apache.lucene.codecs.FieldsProducer
org.apache.lucene.codecs.memory.DirectPostingsFormat.DirectFields
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<String>, Accountable
Enclosing class:
DirectPostingsFormat

private static final class DirectPostingsFormat.DirectFields extends FieldsProducer
  • Field Details

  • Constructor Details

  • Method Details

    • iterator

      public Iterator<String> iterator()
      Description copied from class: Fields
      Returns an iterator that will step through all fields names. This will not return null.
      Specified by:
      iterator in interface Iterable<String>
      Specified by:
      iterator in class Fields
    • terms

      public Terms terms(String field)
      Description copied from class: Fields
      Get the Terms for this field. This will return null if the field does not exist.
      Specified by:
      terms in class Fields
    • size

      public int size()
      Description copied from class: Fields
      Returns the number of fields or -1 if the number of distinct field names is unknown. If >= 0, Fields.iterator() will return as many field names.
      Specified by:
      size in class Fields
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class FieldsProducer
    • ramBytesUsed

      public long ramBytesUsed()
      Description copied from interface: Accountable
      Return the memory usage of this object in bytes. Negative values are illegal.
    • getChildResources

      public Collection<Accountable> getChildResources()
      Description copied from interface: Accountable
      Returns nested resources of this class. The result should be a point-in-time snapshot (to avoid race conditions).
      See Also:
    • checkIntegrity

      public void checkIntegrity() throws IOException
      Description copied from class: FieldsProducer
      Checks consistency of this reader.

      Note 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 class FieldsProducer
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class Object