Package org.dlese.dpc.index.reader
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
A List for field values in a Lucene Document.
- Author:
- John Weatherley
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionFieldValuesList(org.apache.lucene.document.Document myDoc, LazyDocumentMap.FieldNameList fieldNameList) Constructor for the FieldValuesList object -
Method Summary
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
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
Gets a field values String at the given position- Specified by:
getin interfaceList- Specified by:
getin classAbstractList- Parameters:
i- Postion- Returns:
- Field name String
-
getAllValues
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:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection- Returns:
- Number of Fields
-