public class LazyDocument extends Object
Modifier and Type | Class and Description |
---|---|
class |
LazyDocument.LazyField |
Constructor and Description |
---|
LazyDocument(IndexReader reader,
int docID) |
Modifier and Type | Method and Description |
---|---|
IndexableField |
getField(FieldInfo fieldInfo)
Creates an IndexableField whose value will be lazy loaded if and
when it is used.
|
public LazyDocument(IndexReader reader, int docID)
public IndexableField getField(FieldInfo fieldInfo)
NOTE: This method must be called once for each value of the field name specified in sequence that the values exist. This method may not be used to generate multiple, lazy, IndexableField instances refering to the same underlying IndexableField instance.
The lazy loading of field values from all instances of IndexableField objects returned by this method are all backed by a single Document per LazyDocument instance.
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.