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


 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Fieldable.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 FIELDABLE_H
8 #define FIELDABLE_H
9 
10 #include "LuceneObject.h"
11 
12 namespace Lucene {
13 
20 class LPPAPI Fieldable {
21 public:
23 
24 public:
39  virtual void setBoost(double boost) = 0;
40 
48  virtual double getBoost() = 0;
49 
51  virtual String name() = 0;
52 
62  virtual String stringValue() = 0;
63 
66  virtual ReaderPtr readerValue() = 0;
67 
70  virtual TokenStreamPtr tokenStreamValue() = 0;
71 
73  virtual bool isStored() = 0;
74 
76  virtual bool isIndexed() = 0;
77 
80  virtual bool isTokenized() = 0;
81 
86  virtual bool isTermVectorStored() = 0;
87 
90  virtual bool isStoreOffsetWithTermVector() = 0;
91 
93  virtual bool isStorePositionWithTermVector() = 0;
94 
96  virtual bool isBinary() = 0;
97 
99  virtual bool getOmitNorms() = 0;
100 
103  virtual void setOmitNorms(bool omitNorms) = 0;
104 
110  virtual bool isLazy() = 0;
111 
115  virtual int32_t getBinaryOffset() = 0;
116 
120  virtual int32_t getBinaryLength() = 0;
121 
125  virtual ByteArray getBinaryValue() = 0;
126 
136  virtual ByteArray getBinaryValue(ByteArray result) = 0;
137 
139  virtual bool getOmitTermFreqAndPositions() = 0;
140 
146  virtual void setOmitTermFreqAndPositions(bool omitTermFreqAndPositions) = 0;
147 };
148 
149 }
150 
151 #endif

clucene.sourceforge.net