/usr/include/CLucene/index/MultipleTermPositions.h is in libclucene-dev 2.3.3.4-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
------------------------------------------------------------------------------*/
#ifndef _lucene_index_MultipleTermPositions_
#define _lucene_index_MultipleTermPositions_
#include "Terms.h"
#include "CLucene/util/Array.h"
CL_NS_DEF(index)
class Term;
class IndexReader;
class CLUCENE_EXPORT MultipleTermPositions : public TermPositions {
private:
class TermPositionsQueue;
class IntQueue;
int32_t _doc;
int32_t _freq;
TermPositionsQueue* _termPositionsQueue;
IntQueue* _posList;
public:
/**
* Creates a new <code>MultipleTermPositions</code> instance.
*
* @exception IOException
*/
MultipleTermPositions(IndexReader* indexReader, const CL_NS(util)::ArrayBase<Term*>* terms);
virtual ~MultipleTermPositions();
bool next();
int32_t nextPosition();
bool skipTo(const int32_t target);
int32_t doc() const;
int32_t freq() const;
void close();
/**
* Not implemented.
* @throws UnsupportedOperationException
*/
void seek(Term*);
/**
* Not implemented.
* @throws UnsupportedOperationException
*/
void seek(TermEnum*);
/**
* Not implemented.
* @throws UnsupportedOperationException
*/
int32_t read(int32_t*, int32_t*,int32_t);
/**
* Not implemented.
* @throws UnsupportedOperationException
*/
int32_t getPayloadLength() const;
/**
* Not implemented.
* @throws UnsupportedOperationException
*/
uint8_t* getPayload(uint8_t*);
/**
*
* @return false
*/
// Java-TODO: Remove warning after API has been finalized
bool isPayloadAvailable() const;
TermDocs* __asTermDocs();
TermPositions* __asTermPositions();
};
CL_NS_END
#endif
|