Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
ReadOnlyDirectoryReader.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 READONLYDIRECTORYREADER_H
8
#define READONLYDIRECTORYREADER_H
9
10
#include "
DirectoryReader.h
"
11
12
namespace
Lucene
{
13
14
class
LPPAPI
ReadOnlyDirectoryReader
:
public
DirectoryReader
{
15
public
:
16
ReadOnlyDirectoryReader
(
const
DirectoryPtr
&
directory
,
const
SegmentInfosPtr
& sis,
const
IndexDeletionPolicyPtr
&
deletionPolicy
, int32_t
termInfosIndexDivisor
);
17
ReadOnlyDirectoryReader
(
const
DirectoryPtr
&
directory
,
const
SegmentInfosPtr
& infos,
Collection<SegmentReaderPtr>
oldReaders,
18
Collection<int32_t>
oldStarts, MapStringByteArray oldNormsCache,
bool
doClone, int32_t
termInfosIndexDivisor
);
19
ReadOnlyDirectoryReader
(
const
IndexWriterPtr
& writer,
const
SegmentInfosPtr
& infos, int32_t
termInfosIndexDivisor
);
20
virtual
~ReadOnlyDirectoryReader
();
21
22
LUCENE_CLASS
(
ReadOnlyDirectoryReader
);
23
24
public
:
27
virtual
void
acquireWriteLock
();
28
};
29
30
}
31
32
#endif
DirectoryReader.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::Collection
Utility template class to handle collections that can be safely copied and shared.
Definition
Collection.h:17
Lucene::DirectoryReader::DirectoryReader
DirectoryReader(const DirectoryPtr &directory, const SegmentInfosPtr &sis, const IndexDeletionPolicyPtr &deletionPolicy, bool readOnly, int32_t termInfosIndexDivisor)
Construct reading the named set of readers.
Lucene::DirectoryReader::directory
virtual DirectoryPtr directory()
Returns the directory this index resides in.
Lucene::DirectoryReader::deletionPolicy
IndexDeletionPolicyPtr deletionPolicy
Definition
DirectoryReader.h:40
Lucene::DirectoryReader::termInfosIndexDivisor
int32_t termInfosIndexDivisor
Definition
DirectoryReader.h:46
Lucene::ReadOnlyDirectoryReader::ReadOnlyDirectoryReader
ReadOnlyDirectoryReader(const DirectoryPtr &directory, const SegmentInfosPtr &sis, const IndexDeletionPolicyPtr &deletionPolicy, int32_t termInfosIndexDivisor)
Lucene::ReadOnlyDirectoryReader::~ReadOnlyDirectoryReader
virtual ~ReadOnlyDirectoryReader()
Lucene::ReadOnlyDirectoryReader::ReadOnlyDirectoryReader
ReadOnlyDirectoryReader(const DirectoryPtr &directory, const SegmentInfosPtr &infos, Collection< SegmentReaderPtr > oldReaders, Collection< int32_t > oldStarts, MapStringByteArray oldNormsCache, bool doClone, int32_t termInfosIndexDivisor)
Lucene::ReadOnlyDirectoryReader::ReadOnlyDirectoryReader
ReadOnlyDirectoryReader(const IndexWriterPtr &writer, const SegmentInfosPtr &infos, int32_t termInfosIndexDivisor)
Lucene::ReadOnlyDirectoryReader::acquireWriteLock
virtual void acquireWriteLock()
Tries to acquire the WriteLock on this directory. this method is only valid if this IndexReader is di...
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::SegmentInfosPtr
boost::shared_ptr< SegmentInfos > SegmentInfosPtr
Definition
LuceneTypes.h:210
Lucene::IndexDeletionPolicyPtr
boost::shared_ptr< IndexDeletionPolicy > IndexDeletionPolicyPtr
Definition
LuceneTypes.h:153
Lucene::IndexWriterPtr
boost::shared_ptr< IndexWriter > IndexWriterPtr
Definition
LuceneTypes.h:160
Lucene::DirectoryPtr
boost::shared_ptr< Directory > DirectoryPtr
Definition
LuceneTypes.h:489
clucene.sourceforge.net