|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.index.pruning.PruningPolicy org.apache.lucene.index.pruning.StorePruningPolicy
public class StorePruningPolicy
Pruning policy for removing stored fields from documents.
Field Summary | |
---|---|
protected Set<String> |
deleteAll
Fields to be completely deleted |
protected int |
delFields
|
protected Map<String,Integer> |
fieldFlags
Pruning in effect for each field |
protected org.apache.lucene.index.pruning.StorePruningPolicy.DelFieldSelector |
fs
|
protected IndexReader |
in
|
Fields inherited from class org.apache.lucene.index.pruning.PruningPolicy |
---|
DEL_ALL, DEL_PAYLOADS, DEL_POSTINGS, DEL_STORED, DEL_VECTOR |
Constructor Summary | |
---|---|
StorePruningPolicy(IndexReader in,
Map<String,Integer> fieldFlags)
Constructs a policy. |
Method Summary | |
---|---|
FieldInfos |
getFieldInfos(FieldInfos allInfos)
Compute field infos that should be retained |
Document |
pruneDocument(int doc,
FieldSelector parent)
Prune stored fields of a document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map<String,Integer> fieldFlags
protected Set<String> deleteAll
protected org.apache.lucene.index.pruning.StorePruningPolicy.DelFieldSelector fs
protected IndexReader in
protected int delFields
Constructor Detail |
---|
public StorePruningPolicy(IndexReader in, Map<String,Integer> fieldFlags)
in
- input reader.fieldFlags
- a map where keys are field names, and flags are
bitwise-OR values of flags defined in PruningPolicy
.Method Detail |
---|
public FieldInfos getFieldInfos(FieldInfos allInfos)
allInfos
- original field infos
public Document pruneDocument(int doc, FieldSelector parent) throws IOException
getFieldInfos(FieldInfos)
.
doc
- document numberparent
- original field selector that limits what fields will be
retrieved.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |