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
Sort.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 SORT_H
8
#define SORT_H
9
10
#include "
LuceneObject.h
"
11
12
namespace
Lucene {
13
68
class
LPPAPI
Sort
:
public
LuceneObject
{
69
public
:
73
Sort
();
74
76
Sort
(
const
SortFieldPtr
& field);
77
79
Sort
(
Collection<SortFieldPtr>
fields);
80
81
virtual
~
Sort
();
82
83
LUCENE_CLASS
(
Sort
);
84
85
public
:
87
Collection<SortFieldPtr>
fields;
88
89
public
:
93
static
SortPtr
RELEVANCE();
94
96
static
SortPtr
INDEXORDER();
97
99
void
setSort(
const
SortFieldPtr
& field);
100
102
void
setSort(
Collection<SortFieldPtr>
fields);
103
106
Collection<SortFieldPtr>
getSort();
107
108
virtual
String toString();
109
virtual
bool
equals(
const
LuceneObjectPtr
& other);
110
virtual
int32_t hashCode();
111
};
112
113
}
114
115
#endif
clucene.sourceforge.net