DLESE Tools
v1.6.0

org.dlese.dpc.index.reader
Class LazyDocumentMap.FieldValuesList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
LazyDocumentMap.FieldValuesList(org.apache.lucene.document.Document myDoc, LazyDocumentMap.FieldNameList fieldNameList)
          Constructor for the FieldValuesList object
 
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 class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

LazyDocumentMap.FieldValuesList

public LazyDocumentMap.FieldValuesList(org.apache.lucene.document.Document myDoc,
                                       LazyDocumentMap.FieldNameList fieldNameList)
Constructor for the FieldValuesList object

Parameters:
myDoc - Lucene Document
Method Detail

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

DLESE Tools
v1.6.0