Lucene++ - a full-featured, c++ search engine
API Documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
include
lucene++
ByteFieldSource.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 BYTEFIELDSOURCE_H
8
#define BYTEFIELDSOURCE_H
9
10
#include "
FieldCacheSource.h
"
11
12
namespace
Lucene
{
13
24
class
LPPAPI
ByteFieldSource
:
public
FieldCacheSource
{
25
public
:
27
ByteFieldSource
(
const
String&
field
,
const
ByteParserPtr
&
parser
=
ByteParserPtr
());
28
virtual
~ByteFieldSource
();
29
30
LUCENE_CLASS
(
ByteFieldSource
);
31
32
protected
:
33
ByteParserPtr
parser
;
34
35
public
:
36
virtual
String
description
();
37
virtual
DocValuesPtr
getCachedFieldValues
(
const
FieldCachePtr
& cache,
const
String&
field
,
const
IndexReaderPtr
& reader);
38
virtual
bool
cachedFieldSourceEquals
(
const
FieldCacheSourcePtr
& other);
39
virtual
int32_t
cachedFieldSourceHashCode
();
40
};
41
42
}
43
44
#endif
FieldCacheSource.h
LUCENE_CLASS
#define LUCENE_CLASS(Name)
Definition
LuceneObject.h:24
Lucene::ByteFieldSource::cachedFieldSourceEquals
virtual bool cachedFieldSourceEquals(const FieldCacheSourcePtr &other)
Check if equals to another FieldCacheSource, already knowing that cache and field are equal.
Lucene::ByteFieldSource::ByteFieldSource
ByteFieldSource(const String &field, const ByteParserPtr &parser=ByteParserPtr())
Create a cached byte field source with a specific string-to-byte parser.
Lucene::ByteFieldSource::description
virtual String description()
Description of field, used in explain().
Lucene::ByteFieldSource::parser
ByteParserPtr parser
Definition
ByteFieldSource.h:33
Lucene::ByteFieldSource::getCachedFieldValues
virtual DocValuesPtr getCachedFieldValues(const FieldCachePtr &cache, const String &field, const IndexReaderPtr &reader)
Return cached DocValues for input field and reader.
Lucene::ByteFieldSource::cachedFieldSourceHashCode
virtual int32_t cachedFieldSourceHashCode()
Return a hash code of a FieldCacheSource, without the hash-codes of the field and the cache (those ar...
Lucene::ByteFieldSource::~ByteFieldSource
virtual ~ByteFieldSource()
Lucene::FieldCacheSource::FieldCacheSource
FieldCacheSource(const String &field)
Create a cached field source for the input field.
Lucene::FieldCacheSource::field
String field
Definition
FieldCacheSource.h:37
Lucene
Definition
AbstractAllTermDocs.h:12
Lucene::ByteParserPtr
boost::shared_ptr< ByteParser > ByteParserPtr
Definition
LuceneTypes.h:289
Lucene::FieldCacheSourcePtr
boost::shared_ptr< FieldCacheSource > FieldCacheSourcePtr
Definition
LuceneTypes.h:345
Lucene::DocValuesPtr
boost::shared_ptr< DocValues > DocValuesPtr
Definition
LuceneTypes.h:325
Lucene::IndexReaderPtr
boost::shared_ptr< IndexReader > IndexReaderPtr
Definition
LuceneTypes.h:157
Lucene::FieldCachePtr
boost::shared_ptr< FieldCache > FieldCachePtr
Definition
LuceneTypes.h:334
clucene.sourceforge.net