Class MultiPassIndexSplitter

    • Constructor Detail

      • MultiPassIndexSplitter

        public MultiPassIndexSplitter()
    • Method Detail

      • split

        public void split​(Version version,
                          IndexReader in,
                          Directory[] outputs,
                          boolean seq)
                   throws java.io.IOException
        Split source index into multiple parts.
        Parameters:
        in - source index, can have deletions, can have multiple segments (or multiple readers).
        outputs - list of directories where the output parts will be stored.
        seq - if true, then the source index will be split into equal increasing ranges of document id-s. If false, source document id-s will be assigned in a deterministic round-robin fashion to one of the output splits.
        Throws:
        java.io.IOException - If there is a low-level I/O error
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception