Class MultiPassIndexSplitter

    • Constructor Detail

      • MultiPassIndexSplitter

        public MultiPassIndexSplitter()
    • Method Detail

      • split

        @Deprecated
        public void split​(IndexReader input,
                          Directory[] outputs,
                          boolean seq)
                   throws IOException
        Deprecated.
        use split(Version, IndexReader, Directory[], boolean) instead. This method will be removed in Lucene 4.0.
        Split source index into multiple parts.
        Parameters:
        input - source index, can be read-only, 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:
        IOException
      • split

        public void split​(Version version,
                          IndexReader input,
                          Directory[] outputs,
                          boolean seq)
                   throws IOException
        Split source index into multiple parts.
        Parameters:
        input - source index, can be read-only, 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:
        IOException