org.dlese.dpc.index.reader
Class LazyDocumentMap.FieldValuesList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.dlese.dpc.index.reader.LazyDocumentMap.FieldValuesList
- All Implemented Interfaces:
- Iterable, Collection, List, Set
- Enclosing class:
- LazyDocumentMap
public class LazyDocumentMap.FieldValuesList
- extends AbstractList
- implements Set
A List for field values in a Lucene Document.
- Author:
- John Weatherley
Method Summary |
Object |
get(int i)
Gets a field values String at the given position |
Map.Entry |
getAllValues(String fieldName)
Gets a field values String for the given field. |
int |
size()
Number of field values in the Document |
Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
LazyDocumentMap.FieldValuesList
public LazyDocumentMap.FieldValuesList(org.apache.lucene.document.Document myDoc,
LazyDocumentMap.FieldNameList fieldNameList)
- Constructor for the FieldValuesList object
- Parameters:
myDoc
- Lucene Document
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 interface Set
- Specified by:
size
in class AbstractCollection
- Returns:
- Number of Fields