Class LazyDocumentMap.FieldValuesList

java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.dlese.dpc.index.reader.LazyDocumentMap.FieldValuesList
All Implemented Interfaces:
Iterable, Collection, List, SequencedCollection
Enclosing class:
LazyDocumentMap

public class LazyDocumentMap.FieldValuesList extends AbstractList
A List for field values in a Lucene Document.
Author:
John Weatherley
  • Constructor Details

    • FieldValuesList

      public FieldValuesList(org.apache.lucene.document.Document myDoc, LazyDocumentMap.FieldNameList fieldNameList)
      Constructor for the FieldValuesList object
      Parameters:
      myDoc - Lucene Document
    • FieldValuesList

      public FieldValuesList()
  • Method Details

    • get

      public Object get(int i)
      Gets a field values String at the given position
      Specified by:
      get in interface List
      Specified by:
      get in class AbstractList
      Parameters:
      i - Postion
      Returns:
      Field name String
    • getAllValues

      public Map.Entry getAllValues(String fieldName)
      Gets a field values String for the given field.
      Parameters:
      fieldName - Field name
      Returns:
      Field values
    • size

      public int size()
      Number of field values in the Document
      Specified by:
      size in interface Collection
      Specified by:
      size in interface List
      Specified by:
      size in class AbstractCollection
      Returns:
      Number of Fields