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. 5 ///////////////////////////////////////////////////////////////////////////// 6 7 #ifndef READONLYSEGMENTREADER_H 8 #define READONLYSEGMENTREADER_H 9 10 #include "SegmentReader.h" 11 12 namespace Lucene { 13 14 class LPPAPI ReadOnlySegmentReader : public SegmentReader { 15 public: 16 virtual ~ReadOnlySegmentReader(); 17 18 LUCENE_CLASS(ReadOnlySegmentReader); 19 20 public: 21 static void noWrite(); 22 23 virtual void acquireWriteLock(); 24 virtual bool isDeleted(int32_t n); 25 }; 26 27 } 28 29 #endif 30