Package org.apache.lucene.misc.index
Class BinaryDocValueSelector
java.lang.Object
org.apache.lucene.misc.index.BinaryDocValueSelector
- All Implemented Interfaces:
Serializable,IndexRearranger.DocumentSelector
public class BinaryDocValueSelector
extends Object
implements IndexRearranger.DocumentSelector, Serializable
Use this selector to rearrange an index where documents can be uniquely identified based on
BinaryDocValues- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDeleteSelectorFromIndex(String field, Directory directory) Create a selector for the deletes in an index, which can then be applied to a rearranged indexstatic List<IndexRearranger.DocumentSelector> createLiveSelectorsFromIndex(String field, Directory directory) Create a list of selectors that will reproduce the index geometry when used withIndexRearrangergetFilteredDocs(CodecReader reader)
-
Constructor Details
-
BinaryDocValueSelector
-
-
Method Details
-
getFilteredDocs
- Specified by:
getFilteredDocsin interfaceIndexRearranger.DocumentSelector- Throws:
IOException
-
createDeleteSelectorFromIndex
public static IndexRearranger.DocumentSelector createDeleteSelectorFromIndex(String field, Directory directory) throws IOException Create a selector for the deletes in an index, which can then be applied to a rearranged index- Parameters:
field- tells whichBinaryDocValuesare the unique keydirectory- where the original index is present- Returns:
- a deletes selector to be passed to
IndexRearranger - Throws:
IOException
-
createLiveSelectorsFromIndex
public static List<IndexRearranger.DocumentSelector> createLiveSelectorsFromIndex(String field, Directory directory) throws IOException Create a list of selectors that will reproduce the index geometry when used withIndexRearranger- Parameters:
field- tells whichBinaryDocValuesare the unique keydirectory- where the original index is present- Returns:
- a list of selectors to be passed to
IndexRearranger - Throws:
IOException
-