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
Sort.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 SORT_H
8 #define SORT_H
9
10 #include "LuceneObject.h"
11
12 namespace Lucene
13 {
68 class LPPAPI Sort : public LuceneObject
69 {
70 public:
74 Sort();
75
77 Sort(SortFieldPtr field);
78
80 Sort(Collection<SortFieldPtr> fields);
81
82 virtual ~Sort();
83
84 LUCENE_CLASS(Sort);
85
86 public:
88 Collection<SortFieldPtr> fields;
89
90 public:
94 static SortPtr RELEVANCE();
95
97 static SortPtr INDEXORDER();
98
100 void setSort(SortFieldPtr field);
101
103 void setSort(Collection<SortFieldPtr> fields);
104
107 Collection<SortFieldPtr> getSort();
108
109 virtual String toString();
110 virtual bool equals(LuceneObjectPtr other);
111 virtual int32_t hashCode();
112 };
113 }
114
115 #endif

clucene.sourceforge.net