Lucene++ - a full-featured, c++ search engine
API Documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
include
FieldCacheSource.h
Go to the documentation of this file.
1
// Copyright (c) 2009-2011 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 FIELDCACHESOURCE_H
8
#define FIELDCACHESOURCE_H
9
10
#include "
ValueSource.h
"
11
12
namespace
Lucene
13
{
28
class
LPPAPI
FieldCacheSource
:
public
ValueSource
29
{
30
public
:
32
FieldCacheSource
(
const
String& field);
33
virtual
~
FieldCacheSource
();
34
35
LUCENE_CLASS
(
FieldCacheSource
);
36
37
protected
:
38
String field;
39
40
public
:
41
virtual
DocValuesPtr
getValues(
IndexReaderPtr
reader);
42
virtual
String description();
43
48
virtual
DocValuesPtr
getCachedFieldValues(
FieldCachePtr
cache,
const
String& field,
IndexReaderPtr
reader) = 0;
49
50
virtual
bool
equals(
LuceneObjectPtr
other);
51
virtual
int32_t hashCode();
52
54
virtual
bool
cachedFieldSourceEquals(
FieldCacheSourcePtr
other) = 0;
55
58
virtual
int32_t cachedFieldSourceHashCode() = 0;
59
};
60
}
61
62
#endif
clucene.sourceforge.net