org.apache.lucene.codecs.simpletext
Class SimpleTextLiveDocsFormat

java.lang.Object
  extended by org.apache.lucene.codecs.LiveDocsFormat
      extended by org.apache.lucene.codecs.simpletext.SimpleTextLiveDocsFormat

public class SimpleTextLiveDocsFormat
extends LiveDocsFormat

reads/writes plaintext live docs

FOR RECREATIONAL USE ONLY

WARNING: This API is experimental and might change in incompatible ways in the next release.

Constructor Summary
SimpleTextLiveDocsFormat()
           
 
Method Summary
 void files(SegmentInfoPerCommit info, Collection<String> files)
          Records all files in use by this SegmentInfoPerCommit into the files argument.
 MutableBits newLiveDocs(Bits existing)
          Creates a new mutablebits of the same bits set and size of existing.
 MutableBits newLiveDocs(int size)
          Creates a new MutableBits, with all bits set, for the specified size.
 Bits readLiveDocs(Directory dir, SegmentInfoPerCommit info, IOContext context)
          Read live docs bits.
 void writeLiveDocs(MutableBits bits, Directory dir, SegmentInfoPerCommit info, int newDelCount, IOContext context)
          Persist live docs bits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTextLiveDocsFormat

public SimpleTextLiveDocsFormat()
Method Detail

newLiveDocs

public MutableBits newLiveDocs(int size)
                        throws IOException
Description copied from class: LiveDocsFormat
Creates a new MutableBits, with all bits set, for the specified size.

Specified by:
newLiveDocs in class LiveDocsFormat
Throws:
IOException

newLiveDocs

public MutableBits newLiveDocs(Bits existing)
                        throws IOException
Description copied from class: LiveDocsFormat
Creates a new mutablebits of the same bits set and size of existing.

Specified by:
newLiveDocs in class LiveDocsFormat
Throws:
IOException

readLiveDocs

public Bits readLiveDocs(Directory dir,
                         SegmentInfoPerCommit info,
                         IOContext context)
                  throws IOException
Description copied from class: LiveDocsFormat
Read live docs bits.

Specified by:
readLiveDocs in class LiveDocsFormat
Throws:
IOException

writeLiveDocs

public void writeLiveDocs(MutableBits bits,
                          Directory dir,
                          SegmentInfoPerCommit info,
                          int newDelCount,
                          IOContext context)
                   throws IOException
Description copied from class: LiveDocsFormat
Persist live docs bits. Use SegmentInfoPerCommit.getNextDelGen() to determine the generation of the deletes file you should write to.

Specified by:
writeLiveDocs in class LiveDocsFormat
Throws:
IOException

files

public void files(SegmentInfoPerCommit info,
                  Collection<String> files)
           throws IOException
Description copied from class: LiveDocsFormat
Records all files in use by this SegmentInfoPerCommit into the files argument.

Specified by:
files in class LiveDocsFormat
Throws:
IOException


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