org.apache.lucene.index
Class PKIndexSplitter

java.lang.Object
  extended by org.apache.lucene.index.PKIndexSplitter

public class PKIndexSplitter
extends Object

Split an index based on a Filter.


Nested Class Summary
static class PKIndexSplitter.DocumentFilteredIndexReader
           
 
Constructor Summary
PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Filter docsInFirstIndex)
          Split an index based on a Filter.
PKIndexSplitter(Directory input, Directory dir1, Directory dir2, Term midTerm)
          Split an index based on a given primary key term and a 'middle' term.
 
Method Summary
 void split()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PKIndexSplitter

public PKIndexSplitter(Directory input,
                       Directory dir1,
                       Directory dir2,
                       Filter docsInFirstIndex)
Split an index based on a Filter. All documents that match the filter are sent to dir1, remaining ones to dir2.


PKIndexSplitter

public PKIndexSplitter(Directory input,
                       Directory dir1,
                       Directory dir2,
                       Term midTerm)
Split an index based on a given primary key term and a 'middle' term. If the middle term is present, it's sent to dir2.

Method Detail

split

public void split()
           throws IOException
Throws:
IOException


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.