Lucene++ - a full-featured, c++ search engine
API Documentation


Loading...
Searching...
No Matches
SegmentTermDocs.h
Go to the documentation of this file.
1
2// Copyright (c) 2009-2014 Alan Wright. All rights reserved.
3// Distributable under the terms of either the Apache License (Version 2.0)
4// or the GNU Lesser General Public License.
6
7#ifndef SEGMENTTERMDOCS_H
8#define SEGMENTTERMDOCS_H
9
10#include "TermPositions.h"
11
12namespace Lucene {
13
14class LPPAPI SegmentTermDocs : public TermPositions, public LuceneObject {
15public:
18
20
21protected:
26 int32_t count;
27 int32_t df;
30 int32_t _doc;
31 int32_t _freq;
32
33 int32_t skipInterval;
36
39
40 int64_t skipPointer;
42
45
46public:
48 virtual void seek(const TermPtr& term);
49
51 virtual void seek(const TermEnumPtr& termEnum);
52
53 virtual void seek(const TermInfoPtr& ti, const TermPtr& term);
54
55 virtual void close();
56
58 virtual int32_t doc();
59
61 virtual int32_t freq();
62
64 virtual bool next();
65
67 virtual int32_t read(Collection<int32_t>& docs, Collection<int32_t>& freqs);
68
70 virtual bool skipTo(int32_t target);
71
74 virtual void freqStream(const IndexInputPtr& freqStream);
75
76protected:
77 virtual void skippingDoc();
78 virtual int32_t readNoTf(Collection<int32_t>& docs, Collection<int32_t>& freqs, int32_t length);
79
81 virtual void skipProx(int64_t proxPointer, int32_t payloadLength);
82};
83
84}
85
86#endif
#define LUCENE_CLASS(Name)
Definition LuceneObject.h:24
Optimized implementation of a vector of bits.
Definition BitVector.h:15
Utility template class to handle collections that can be safely copied and shared.
Definition Collection.h:17
Abstract base class for input from a file in a Directory. A random-access input stream....
Definition IndexInput.h:17
Base class for all Lucene classes.
Definition LuceneObject.h:31
Definition SegmentReader.h:15
Definition SegmentTermDocs.h:14
int32_t _freq
Definition SegmentTermDocs.h:31
DefaultSkipListReaderPtr skipListReader
Definition SegmentTermDocs.h:35
virtual void freqStream(const IndexInputPtr &freqStream)
virtual bool next()
Moves to the next pair in the enumeration.
int32_t skipInterval
Definition SegmentTermDocs.h:33
virtual bool skipTo(int32_t target)
Optimized implementation.
virtual void seek(const TermPtr &term)
Sets this to the data for a term.
virtual int32_t readNoTf(Collection< int32_t > &docs, Collection< int32_t > &freqs, int32_t length)
bool currentFieldStoresPayloads
Definition SegmentTermDocs.h:43
virtual int32_t freq()
Returns the frequency of the term within the current document.
SegmentTermDocs(const SegmentReaderPtr &parent)
int32_t df
Definition SegmentTermDocs.h:27
int64_t freqBasePointer
Definition SegmentTermDocs.h:37
int32_t _doc
Definition SegmentTermDocs.h:30
int64_t proxBasePointer
Definition SegmentTermDocs.h:38
virtual void seek(const TermInfoPtr &ti, const TermPtr &term)
int32_t count
Definition SegmentTermDocs.h:26
bool haveSkipped
Definition SegmentTermDocs.h:41
IndexInput * __freqStream
Definition SegmentTermDocs.h:25
bool currentFieldOmitTermFreqAndPositions
Definition SegmentTermDocs.h:44
BitVector * __deletedDocs
Definition SegmentTermDocs.h:29
virtual int32_t doc()
Returns the current document number.
IndexInputPtr _freqStream
Definition SegmentTermDocs.h:24
BitVectorPtr deletedDocs
Definition SegmentTermDocs.h:28
virtual int32_t read(Collection< int32_t > &docs, Collection< int32_t > &freqs)
Optimized implementation.
virtual void close()
Frees associated resources.
virtual void skipProx(int64_t proxPointer, int32_t payloadLength)
Overridden by SegmentTermPositions to skip in prox stream.
SegmentReaderWeakPtr _parent
Definition SegmentTermDocs.h:22
virtual IndexInputPtr freqStream()
Used for testing.
virtual void seek(const TermEnumPtr &termEnum)
Sets this to the data for the current term in a TermEnum.
virtual void skippingDoc()
SegmentReader * __parent
Definition SegmentTermDocs.h:23
int32_t maxSkipLevels
Definition SegmentTermDocs.h:34
int64_t skipPointer
Definition SegmentTermDocs.h:40
TermPositions provides an interface for enumerating the <document, frequency, <position>*> tuples for...
Definition TermPositions.h:18
Definition AbstractAllTermDocs.h:12
boost::shared_ptr< BitVector > BitVectorPtr
Definition LuceneTypes.h:523
boost::shared_ptr< DefaultSkipListReader > DefaultSkipListReaderPtr
Definition LuceneTypes.h:103
boost::shared_ptr< Term > TermPtr
Definition LuceneTypes.h:233
boost::weak_ptr< SegmentReader > SegmentReaderWeakPtr
Definition LuceneTypes.h:215
boost::shared_ptr< IndexInput > IndexInputPtr
Definition LuceneTypes.h:493
boost::shared_ptr< TermEnum > TermEnumPtr
Definition LuceneTypes.h:235
boost::shared_ptr< TermInfo > TermInfoPtr
Definition LuceneTypes.h:239
boost::shared_ptr< SegmentReader > SegmentReaderPtr
Definition LuceneTypes.h:215

clucene.sourceforge.net