Class Lucene40PostingsReader
- java.lang.Object
-
- org.apache.lucene.codecs.PostingsReaderBase
-
- org.apache.lucene.codecs.lucene40.Lucene40PostingsReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
@Deprecated public class Lucene40PostingsReader extends PostingsReaderBase
Deprecated.Only for reading old 4.0 segmentsConcrete class that reads the 4.0 frq/prox postings format.- See Also:
Lucene40PostingsFormat
-
-
Constructor Summary
Constructors Constructor Description Lucene40PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix)
Deprecated.Sole constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.void
decodeTerm(long[] longs, DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute)
Deprecated.Actually decode metadata for next termDocsEnum
docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags)
Deprecated.Must fully consume state, since after this call that TermState may be reused.DocsAndPositionsEnum
docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags)
Deprecated.Must fully consume state, since after this call that TermState may be reused.void
init(IndexInput termsIn)
Deprecated.Performs any initialization, such as reading and verifying the header from the provided terms dictionaryIndexInput
.BlockTermState
newTermState()
Deprecated.Return a newly created empty TermStatelong
ramBytesUsed()
Deprecated.Returns approximate RAM bytes used
-
-
-
Constructor Detail
-
Lucene40PostingsReader
public Lucene40PostingsReader(Directory dir, FieldInfos fieldInfos, SegmentInfo segmentInfo, IOContext ioContext, String segmentSuffix) throws IOException
Deprecated.Sole constructor.- Throws:
IOException
-
-
Method Detail
-
init
public void init(IndexInput termsIn) throws IOException
Deprecated.Description copied from class:PostingsReaderBase
Performs any initialization, such as reading and verifying the header from the provided terms dictionaryIndexInput
.- Specified by:
init
in classPostingsReaderBase
- Throws:
IOException
-
newTermState
public BlockTermState newTermState()
Deprecated.Description copied from class:PostingsReaderBase
Return a newly created empty TermState- Specified by:
newTermState
in classPostingsReaderBase
-
close
public void close() throws IOException
Deprecated.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classPostingsReaderBase
- Throws:
IOException
-
decodeTerm
public void decodeTerm(long[] longs, DataInput in, FieldInfo fieldInfo, BlockTermState _termState, boolean absolute) throws IOException
Deprecated.Description copied from class:PostingsReaderBase
Actually decode metadata for next term
-
docs
public DocsEnum docs(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsEnum reuse, int flags) throws IOException
Deprecated.Description copied from class:PostingsReaderBase
Must fully consume state, since after this call that TermState may be reused.- Specified by:
docs
in classPostingsReaderBase
- Throws:
IOException
-
docsAndPositions
public DocsAndPositionsEnum docsAndPositions(FieldInfo fieldInfo, BlockTermState termState, Bits liveDocs, DocsAndPositionsEnum reuse, int flags) throws IOException
Deprecated.Description copied from class:PostingsReaderBase
Must fully consume state, since after this call that TermState may be reused.- Specified by:
docsAndPositions
in classPostingsReaderBase
- Throws:
IOException
-
ramBytesUsed
public long ramBytesUsed()
Deprecated.Description copied from class:PostingsReaderBase
Returns approximate RAM bytes used- Specified by:
ramBytesUsed
in classPostingsReaderBase
-
-