org.apache.lucene.codecs.sep
Class SepPostingsReader

java.lang.Object
  extended by org.apache.lucene.codecs.PostingsReaderBase
      extended by org.apache.lucene.codecs.sep.SepPostingsReader
All Implemented Interfaces:
Closeable

public class SepPostingsReader
extends PostingsReaderBase

Concrete class that reads the current doc/freq/skip postings format.

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

Constructor Summary
SepPostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext context, IntStreamFactory intFactory, String segmentSuffix)
           
 
Method Summary
 void close()
           
 void decodeTerm(long[] empty, DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute)
           
 DocsEnum docs(FieldInfo fieldInfo, BlockTermState _termState, Bits liveDocs, DocsEnum reuse, int flags)
           
 DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState _termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags)
           
 void init(IndexInput termsIn)
           
 BlockTermState newTermState()
           
 long ramBytesUsed()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SepPostingsReader

public SepPostingsReader(Directory dir,
                         FieldInfos fieldInfos,
                         SegmentInfo segmentInfo,
                         IOContext context,
                         IntStreamFactory intFactory,
                         String segmentSuffix)
                  throws IOException
Throws:
IOException
Method Detail

init

public void init(IndexInput termsIn)
          throws IOException
Specified by:
init in class PostingsReaderBase
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class PostingsReaderBase
Throws:
IOException

newTermState

public BlockTermState newTermState()
                            throws IOException
Specified by:
newTermState in class PostingsReaderBase
Throws:
IOException

decodeTerm

public void decodeTerm(long[] empty,
                       DataInput in,
                       FieldInfo fieldInfo,
                       BlockTermState _termState,
                       boolean absolute)
                throws IOException
Specified by:
decodeTerm in class PostingsReaderBase
Throws:
IOException

docs

public DocsEnum docs(FieldInfo fieldInfo,
                     BlockTermState _termState,
                     Bits liveDocs,
                     DocsEnum reuse,
                     int flags)
              throws IOException
Specified by:
docs in class PostingsReaderBase
Throws:
IOException

docsAndPositions

public DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo,
                                             BlockTermState _termState,
                                             Bits liveDocs,
                                             DocsAndPositionsEnum reuse,
                                             int flags)
                                      throws IOException
Specified by:
docsAndPositions in class PostingsReaderBase
Throws:
IOException

ramBytesUsed

public long ramBytesUsed()
Specified by:
ramBytesUsed in class PostingsReaderBase


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