Namespaces | |
| namespace | Auto |
| Database factory functions which determine the database type automatically. | |
| namespace | Brass |
| Database factory functions for the brass backend. | |
| namespace | Chert |
| Database factory functions for the chert backend. | |
| namespace | Flint |
| Database factory functions for the flint backend. | |
| namespace | InMemory |
| Database factory functions for the inmemory backend. | |
| namespace | Internal |
| namespace | Remote |
| Database factory functions for the remote backend. | |
| namespace | Unicode |
| Functions associated with handling Unicode characters. | |
Classes | |
| class | ByQueryIndexCmp |
| class | BitWriter |
| class | BitReader |
| class | DatabaseReplicator |
| Base class for database replicator objects. More... | |
| struct | ReplicationInfo |
| Information about the steps involved in performing a replication. More... | |
| class | DatabaseMaster |
| Access to a master database for replication. More... | |
| class | DatabaseReplica |
| Access to a database replica, for applying replication to it. More... | |
| struct | delete_ptr |
| struct | CompareTermListSizeAscending |
| class | Compactor |
| Compact a database, or merge and compact several. More... | |
| class | Database |
| This class is used to access a database, or a group of databases. More... | |
| class | WritableDatabase |
| This class provides read/write access to a database. More... | |
| class | DerefWrapper_ |
| class | Document |
| A handle representing a document in a Xapian database. More... | |
| class | MSet |
| A match set (MSet). More... | |
| class | MSetIterator |
| An iterator pointing to items in an MSet. More... | |
| class | ESet |
| Class representing an ordered set of expand terms (an ESet). More... | |
| class | ESetIterator |
| Iterate through terms in the ESet. More... | |
| class | RSet |
| A relevance set (R-Set). More... | |
| class | MatchDecider |
| Base class for matcher decision functor. More... | |
| class | Enquire |
| This class provides an interface to the information retrieval system for the purpose of searching. More... | |
| class | Error |
| All exceptions thrown by Xapian are subclasses of Xapian::Error. More... | |
| class | LogicError |
| The base class for exceptions indicating errors in the program logic. More... | |
| class | RuntimeError |
| The base class for exceptions indicating errors only detectable at runtime. More... | |
| class | AssertionError |
| AssertionError is thrown if a logical assertion inside Xapian fails. More... | |
| class | InvalidArgumentError |
| InvalidArgumentError indicates an invalid parameter value was passed to the API. More... | |
| class | InvalidOperationError |
| InvalidOperationError indicates the API was used in an invalid way. More... | |
| class | UnimplementedError |
| UnimplementedError indicates an attempt to use an unimplemented feature. More... | |
| class | DatabaseError |
| DatabaseError indicates some sort of database related error. More... | |
| class | DatabaseCorruptError |
| DatabaseCorruptError indicates database corruption was detected. More... | |
| class | DatabaseCreateError |
| DatabaseCreateError indicates a failure to create a database. More... | |
| class | DatabaseLockError |
| DatabaseLockError indicates failure to lock a database. More... | |
| class | DatabaseModifiedError |
| DatabaseModifiedError indicates a database was modified. More... | |
| class | DatabaseOpeningError |
| DatabaseOpeningError indicates failure to open a database. More... | |
| class | DatabaseVersionError |
| DatabaseVersionError indicates that a database is in an unsupported format. More... | |
| class | DocNotFoundError |
| Indicates an attempt to access a document not present in the database. More... | |
| class | FeatureUnavailableError |
| Indicates an attempt to use a feature which is unavailable. More... | |
| class | InternalError |
| InternalError indicates a runtime problem of some sort. More... | |
| class | NetworkError |
| Indicates a problem communicating with a remote database. More... | |
| class | NetworkTimeoutError |
| Indicates a timeout expired while communicating with a remote database. More... | |
| class | QueryParserError |
| Indicates a query string can't be parsed. More... | |
| class | SerialisationError |
| Indicates an error in the std::string serialisation of an object. More... | |
| class | RangeError |
| RangeError indicates an attempt to access outside the bounds of a container. More... | |
| class | ErrorHandler |
| Decide if a Xapian::Error exception should be ignored. More... | |
| class | ExpandDecider |
| Virtual base class for expand decider functor. More... | |
| class | ExpandDeciderAnd |
| ExpandDecider subclass which rejects terms using two ExpandDeciders. More... | |
| class | ExpandDeciderFilterTerms |
| ExpandDecider subclass which rejects terms in a specified list. More... | |
| class | KeyMaker |
| Virtual base class for key making functors. More... | |
| class | MultiValueKeyMaker |
| KeyMaker subclass which combines several values. More... | |
| class | Sorter |
| Virtual base class for sorter functor. More... | |
| class | MultiValueSorter |
| Sorter subclass which sorts by a several values. More... | |
| class | MatchSpy |
| Abstract base class for match spies. More... | |
| class | ValueCountMatchSpy |
| Class for counting the frequencies of values in the matching documents. More... | |
| class | PositionIterator |
| An iterator pointing to items in a list of positions. More... | |
| class | PostingIterator |
| An iterator pointing to items in a list of postings. More... | |
| class | PostingSource |
| Base class which provides an "external" source of postings. More... | |
| class | ValuePostingSource |
| A posting source which generates weights from a value slot. More... | |
| class | ValueWeightPostingSource |
| A posting source which reads weights from a value slot. More... | |
| class | DecreasingValueWeightPostingSource |
| Read weights from a value which is known to decrease as docid increases. More... | |
| class | ValueMapPostingSource |
| A posting source which looks up weights in a map using values as the key. More... | |
| class | FixedWeightPostingSource |
| A posting source which returns a fixed weight for all documents. More... | |
| class | Query |
| Class representing a query. More... | |
| class | Stopper |
| Base class for stop-word decision functor. More... | |
| class | SimpleStopper |
| Simple implementation of Stopper class - this will suit most users. More... | |
| struct | ValueRangeProcessor |
| Base class for value range processors. More... | |
| class | StringValueRangeProcessor |
| Handle a string range. More... | |
| class | DateValueRangeProcessor |
| Handle a date range. More... | |
| class | NumberValueRangeProcessor |
| Handle a number range. More... | |
| class | QueryParser |
| Build a Xapian::Query object from a user query string. More... | |
| class | Registry |
| Registry for user subclasses. More... | |
| struct | StemImplementation |
| Class representing a stemming algorithm implementation. More... | |
| class | Stem |
| Class representing a stemming algorithm. More... | |
| class | TermGenerator |
| Parses a piece of text and generate terms. More... | |
| class | TermIterator |
| An iterator pointing to items in a list of terms. More... | |
| class | Utf8Iterator |
| An iterator which returns Unicode character values from a UTF-8 encoded string. More... | |
| class | ValueIteratorEnd_ |
| class | ValueIterator |
| Class for iterating over document values. More... | |
| class | ValueSetMatchDecider |
| MatchDecider filtering results based on whether document values are in a user-defined set. More... | |
| class | Weight |
| Abstract base class for weighting schemes. More... | |
| class | BoolWeight |
| Class implementing a "boolean" weighting scheme. More... | |
| class | BM25Weight |
| Xapian::Weight subclass implementing the BM25 probabilistic formula. More... | |
| class | TradWeight |
| Xapian::Weight subclass implementing the traditional probabilistic formula. More... | |
| class | InternalStemDanish |
| class | InternalStemDutch |
| class | InternalStemEnglish |
| class | InternalStemFinnish |
| class | InternalStemFrench |
| class | InternalStemGerman |
| class | InternalStemGerman2 |
| class | InternalStemHungarian |
| class | InternalStemItalian |
| class | InternalStemKraaij_pohlmann |
| class | InternalStemLovins |
| class | InternalStemNorwegian |
| class | InternalStemPorter |
| class | InternalStemPortuguese |
| class | InternalStemRomanian |
| class | InternalStemRussian |
| class | InternalStemSpanish |
| class | SnowballStemImplementation |
| class | InternalStemSwedish |
| class | InternalStemTurkish |
Typedefs | |
| typedef unsigned | doccount |
| A count of documents. | |
| typedef int | doccount_diff |
| A signed difference between two counts of documents. | |
| typedef unsigned | docid |
| A unique identifier for a document. | |
| typedef double | doclength |
| A normalised document length. | |
| typedef int | percent |
| The percentage score for a document in an MSet. | |
| typedef unsigned | termcount |
| A counts of terms. | |
| typedef int | termcount_diff |
| A signed difference between two counts of terms. | |
| typedef unsigned | termpos |
| A term position within a document or query. | |
| typedef int | termpos_diff |
| A signed difference between two term positions. | |
| typedef unsigned | timeout |
| A timeout value in milliseconds. | |
| typedef unsigned | valueno |
| The number for a value slot in a document. | |
| typedef int | valueno_diff |
| A signed difference between two value slot numbers. | |
| typedef double | weight |
| The weight of a document or term. | |
Functions | |
| static int | freq_edit_lower_bound (const vector< unsigned > &a, const vector< unsigned > &b) |
| XAPIAN_NORETURN (static void only_one_subdatabase_allowed()) | |
| static void | only_one_subdatabase_allowed () |
| static bool | decode_xxy (const string &s, int &x1, int &x2, int &y) |
| static bool | vet_dm (int d, int m) |
| static bool | is_yyyy_mm_dd (const string &s) |
| const char * | version_string () |
| Report the version string of the library which the program is linked with. | |
| int | major_version () |
| Report the major version of the library which the program is linked with. | |
| int | minor_version () |
| Report the minor version of the library which the program is linked with. | |
| int | revision () |
| Report the revision of the library which the program is linked with. | |
| static void | open_stub (Database &db, const string &file) |
| static void | open_stub (WritableDatabase &db, const string &file, int action) |
| static TermList * | build_termlist_tree (const Xapian::Database &db, const RSet &rset) |
| Build a tree of binary TermList objects like QueryOptimiser does for OrPostList objects. | |
| bool | operator== (const MSetIterator &a, const MSetIterator &b) |
| Equality test for MSetIterator objects. | |
| bool | operator!= (const MSetIterator &a, const MSetIterator &b) |
| Inequality test for MSetIterator objects. | |
| bool | operator== (const ESetIterator &a, const ESetIterator &b) |
| Equality test for ESetIterator objects. | |
| bool | operator!= (const ESetIterator &a, const ESetIterator &b) |
| Inequality test for ESetIterator objects. | |
| bool | operator== (const PositionIterator &a, const PositionIterator &b) |
| Test equality of two PositionIterators. | |
| bool | operator!= (const PositionIterator &a, const PositionIterator &b) |
| Test inequality of two PositionIterators. | |
| bool | operator== (const PostingIterator &a, const PostingIterator &b) |
| Test equality of two PostingIterators. | |
| bool | operator!= (const PostingIterator &a, const PostingIterator &b) |
| Test inequality of two PostingIterators. | |
| std::string | sortable_serialise (double value) |
| Convert a floating point number to a string, preserving sort order. | |
| double | sortable_unserialise (const std::string &value) |
| Convert a string encoded using sortable_serialise back to a floating point number. | |
| bool | operator== (const TermIterator &a, const TermIterator &b) |
| Equality test for TermIterator objects. | |
| bool | operator!= (const TermIterator &a, const TermIterator &b) |
| Inequality test for TermIterator objects. | |
| bool | operator== (const ValueIterator &a, const ValueIterator &b) |
| Equality test for ValueIterator objects. | |
| bool | operator== (const ValueIterator &a, const ValueIteratorEnd_ &) |
| bool | operator== (const ValueIteratorEnd_ &a, const ValueIterator &b) |
| bool | operator== (const ValueIteratorEnd_ &, const ValueIteratorEnd_ &) |
| bool | operator!= (const ValueIterator &a, const ValueIterator &b) |
| Inequality test for ValueIterator objects. | |
| bool | operator!= (const ValueIterator &a, const ValueIteratorEnd_ &b) |
| bool | operator!= (const ValueIteratorEnd_ &a, const ValueIterator &b) |
| bool | operator!= (const ValueIteratorEnd_ &a, const ValueIteratorEnd_ &b) |
| bool | U_isupper (unsigned ch) |
| unsigned | check_wordchar (unsigned ch) |
| bool | should_stem (const std::string &term) |
| unsigned | check_infix (unsigned ch) |
| unsigned | check_infix_digit (unsigned ch) |
| bool | is_digit (unsigned ch) |
| unsigned | check_suffix (unsigned ch) |
Variables | |
| static const char | max_month_length [12] |
| const int | DB_CREATE_OR_OPEN = 1 |
| Open for read/write; create if no db exists. | |
| const int | DB_CREATE = 2 |
| Create a new database; fail if db exists. | |
| const int | DB_CREATE_OR_OVERWRITE = 3 |
| Overwrite existing db; create if none exists. | |
| const int | DB_OPEN = 4 |
| Open for read/write; fail if no db exists. | |
| const valueno | BAD_VALUENO = static_cast<valueno>(-1) |
| Reserved value to indicate "no valueno". | |
| const unsigned | UNICODE_IGNORE = numeric_limits<unsigned>::max() |
| Value representing "ignore this" when returned by check_infix() or check_infix_digit(). | |
| typedef unsigned Xapian::doccount |
| typedef int Xapian::doccount_diff |
| typedef unsigned Xapian::docid |
| typedef double Xapian::doclength |
| typedef int Xapian::percent |
| typedef unsigned Xapian::termcount |
| typedef int Xapian::termcount_diff |
| typedef unsigned Xapian::termpos |
| typedef int Xapian::termpos_diff |
| typedef unsigned Xapian::timeout |
| typedef unsigned Xapian::valueno |
The number for a value slot in a document.
Value slot numbers are unsigned and (currently) a 32-bit quantity, with Xapian::BAD_VALUENO being represented by the largest possible value. Therefore value slots 0 to 0xFFFFFFFE are available for use.
| typedef int Xapian::valueno_diff |
| typedef double Xapian::weight |
| static TermList* Xapian::build_termlist_tree | ( | const Xapian::Database & | db, | |
| const RSet & | rset | |||
| ) | [static] |
Build a tree of binary TermList objects like QueryOptimiser does for OrPostList objects.
Definition at line 71 of file esetinternal.cc.
References Assert, AssertRel, Xapian::RSet::empty(), Xapian::Database::internal, and Xapian::RSet::internal.
Referenced by Xapian::ESet::Internal::expand().
| unsigned Xapian::check_infix | ( | unsigned | ch | ) | [inline] |
Definition at line 67 of file termgenerator_internal.cc.
References UNICODE_IGNORE.
Referenced by Xapian::TermGenerator::Internal::index_text(), and Xapian::QueryParser::Internal::parse_term().
| unsigned Xapian::check_infix_digit | ( | unsigned | ch | ) | [inline] |
Definition at line 83 of file termgenerator_internal.cc.
References UNICODE_IGNORE.
Referenced by Xapian::TermGenerator::Internal::index_text(), and Xapian::QueryParser::Internal::parse_term().
| unsigned Xapian::check_suffix | ( | unsigned | ch | ) | [inline] |
Definition at line 109 of file termgenerator_internal.cc.
Referenced by Xapian::TermGenerator::Internal::index_text().
| unsigned Xapian::check_wordchar | ( | unsigned | ch | ) | [inline] |
Definition at line 45 of file termgenerator_internal.cc.
References Xapian::Unicode::is_wordchar(), and Xapian::Unicode::tolower().
Referenced by Xapian::TermGenerator::Internal::index_text().
| static bool Xapian::decode_xxy | ( | const string & | s, | |
| int & | x1, | |||
| int & | x2, | |||
| int & | y | |||
| ) | [static] |
Definition at line 68 of file valuerangeproc.cc.
Referenced by Xapian::DateValueRangeProcessor::operator()().
| static int Xapian::freq_edit_lower_bound | ( | const vector< unsigned > & | a, | |
| const vector< unsigned > & | b | |||
| ) | [static] |
Definition at line 508 of file omdatabase.cc.
References VEC_SIZE.
Referenced by Xapian::Database::get_spelling_suggestion().
| bool Xapian::is_digit | ( | unsigned | ch | ) | [inline] |
Definition at line 105 of file termgenerator_internal.cc.
References Xapian::Unicode::DECIMAL_DIGIT_NUMBER, and Xapian::Unicode::get_category().
Referenced by Xapian::TermGenerator::Internal::index_text(), and Xapian::QueryParser::Internal::parse_term().
| static bool Xapian::is_yyyy_mm_dd | ( | const string & | s | ) | [static] |
Definition at line 112 of file valuerangeproc.cc.
Referenced by Xapian::DateValueRangeProcessor::operator()().
| int Xapian::major_version | ( | ) |
Report the major version of the library which the program is linked with.
This may be different to the version compiled against (given by XAPIAN_MAJOR_VERSION) if shared libraries are being used.
Definition at line 27 of file version.cc.
References XAPIAN_MAJOR_VERSION.
| int Xapian::minor_version | ( | ) |
Report the minor version of the library which the program is linked with.
This may be different to the version compiled against (given by XAPIAN_MINOR_VERSION) if shared libraries are being used.
Definition at line 29 of file version.cc.
References XAPIAN_MINOR_VERSION.
| static void Xapian::only_one_subdatabase_allowed | ( | ) | [static] |
Definition at line 771 of file omdatabase.cc.
Referenced by Xapian::WritableDatabase::add_document(), Xapian::WritableDatabase::add_spelling(), Xapian::WritableDatabase::add_synonym(), Xapian::WritableDatabase::begin_transaction(), Xapian::WritableDatabase::cancel_transaction(), Xapian::WritableDatabase::clear_synonyms(), Xapian::WritableDatabase::commit(), Xapian::WritableDatabase::commit_transaction(), Xapian::WritableDatabase::delete_document(), Xapian::WritableDatabase::remove_spelling(), Xapian::WritableDatabase::remove_synonym(), Xapian::WritableDatabase::replace_document(), and Xapian::WritableDatabase::set_metadata().
| static void Xapian::open_stub | ( | WritableDatabase & | db, | |
| const string & | file, | |||
| int | action | |||
| ) | [static] |
Definition at line 218 of file dbfactory.cc.
References Xapian::Database::add_database(), Xapian::InMemory::open(), Xapian::Brass::open(), Xapian::Flint::open(), Xapian::Chert::open(), Xapian::Remote::open_writable(), resolve_relative_path(), and Xapian::Internal::str().
| static void Xapian::open_stub | ( | Database & | db, | |
| const string & | file | |||
| ) | [static] |
Definition at line 109 of file dbfactory.cc.
References Xapian::Database::add_database(), Xapian::InMemory::open(), Xapian::Remote::open(), Xapian::Brass::open(), Xapian::Flint::open(), Xapian::Chert::open(), resolve_relative_path(), and Xapian::Internal::str().
Referenced by Xapian::Database::Database(), Xapian::DatabaseReplica::Internal::Internal(), and Xapian::WritableDatabase::WritableDatabase().
| bool Xapian::operator!= | ( | const ValueIteratorEnd_ & | a, | |
| const ValueIteratorEnd_ & | b | |||
| ) | [inline] |
For internal use only.
Inequality test for end iterators.
Definition at line 225 of file valueiterator.h.
| bool Xapian::operator!= | ( | const ValueIteratorEnd_ & | a, | |
| const ValueIterator & | b | |||
| ) | [inline] |
For internal use only.
Inequality test for ValueIterator object and end iterator.
Definition at line 218 of file valueiterator.h.
| bool Xapian::operator!= | ( | const ValueIterator & | a, | |
| const ValueIteratorEnd_ & | b | |||
| ) | [inline] |
For internal use only.
Inequality test for ValueIterator object and end iterator.
Definition at line 211 of file valueiterator.h.
| bool Xapian::operator!= | ( | const ValueIterator & | a, | |
| const ValueIterator & | b | |||
| ) | [inline] |
| bool Xapian::operator!= | ( | const TermIterator & | a, | |
| const TermIterator & | b | |||
| ) | [inline] |
| bool Xapian::operator!= | ( | const PostingIterator & | a, | |
| const PostingIterator & | b | |||
| ) | [inline] |
| bool Xapian::operator!= | ( | const PositionIterator & | a, | |
| const PositionIterator & | b | |||
| ) | [inline] |
| bool Xapian::operator!= | ( | const ESetIterator & | a, | |
| const ESetIterator & | b | |||
| ) | [inline] |
Inequality test for ESetIterator objects.
Definition at line 562 of file enquire.h.
References Xapian::ESetIterator::index.
| bool Xapian::operator!= | ( | const MSetIterator & | a, | |
| const MSetIterator & | b | |||
| ) | [inline] |
Inequality test for MSetIterator objects.
Definition at line 413 of file enquire.h.
References Xapian::MSetIterator::index.
| bool Xapian::operator== | ( | const ValueIteratorEnd_ & | , | |
| const ValueIteratorEnd_ & | ||||
| ) | [inline] |
For internal use only.
Equality test for end iterators.
Definition at line 197 of file valueiterator.h.
| bool Xapian::operator== | ( | const ValueIteratorEnd_ & | a, | |
| const ValueIterator & | b | |||
| ) | [inline] |
For internal use only.
Equality test for ValueIterator object and end iterator.
Definition at line 190 of file valueiterator.h.
| bool Xapian::operator== | ( | const ValueIterator & | a, | |
| const ValueIteratorEnd_ & | ||||
| ) | [inline] |
For internal use only.
Equality test for ValueIterator object and end iterator.
Definition at line 183 of file valueiterator.h.
References Xapian::Internal::RefCntPtr< T >::get(), and Xapian::ValueIterator::internal.
| bool Xapian::operator== | ( | const ValueIterator & | a, | |
| const ValueIterator & | b | |||
| ) | [inline] |
Equality test for ValueIterator objects.
Definition at line 174 of file valueiterator.h.
References Xapian::Internal::RefCntPtr< T >::get(), and Xapian::ValueIterator::internal.
| bool Xapian::operator== | ( | const TermIterator & | a, | |
| const TermIterator & | b | |||
| ) | [inline] |
Equality test for TermIterator objects.
Definition at line 131 of file termiterator.h.
References Xapian::Internal::RefCntPtr< T >::get(), and Xapian::TermIterator::internal.
| bool Xapian::operator== | ( | const PostingIterator & | a, | |
| const PostingIterator & | b | |||
| ) | [inline] |
Test equality of two PostingIterators.
Definition at line 141 of file postingiterator.h.
References Xapian::Internal::RefCntPtr< T >::get(), and Xapian::PostingIterator::internal.
| bool Xapian::operator== | ( | const PositionIterator & | a, | |
| const PositionIterator & | b | |||
| ) | [inline] |
Test equality of two PositionIterators.
Definition at line 110 of file positioniterator.h.
References Xapian::Internal::RefCntPtr< T >::get(), and Xapian::PositionIterator::internal.
| bool Xapian::operator== | ( | const ESetIterator & | a, | |
| const ESetIterator & | b | |||
| ) | [inline] |
Equality test for ESetIterator objects.
Definition at line 556 of file enquire.h.
References Xapian::ESetIterator::index.
| bool Xapian::operator== | ( | const MSetIterator & | a, | |
| const MSetIterator & | b | |||
| ) | [inline] |
Equality test for MSetIterator objects.
Definition at line 407 of file enquire.h.
References Xapian::MSetIterator::index.
| int Xapian::revision | ( | ) |
Report the revision of the library which the program is linked with.
This may be different to the version compiled against (given by XAPIAN_REVISION) if shared libraries are being used.
Definition at line 31 of file version.cc.
References XAPIAN_REVISION.
Referenced by FlintDatabase::create_and_open_tables(), ChertDatabase::create_and_open_tables(), BrassDatabase::create_and_open_tables(), FlintTable_base::get_revision(), ChertTable_base::get_revision(), BrassTable_base::get_revision(), FlintDatabase::open_tables_consistent(), ChertDatabase::open_tables_consistent(), BrassDatabase::open_tables_consistent(), FlintTable_base::set_revision(), ChertTable_base::set_revision(), BrassTable_base::set_revision(), and Xapian::DatabaseMaster::write_changesets_to_fd().
| bool Xapian::should_stem | ( | const std::string & | term | ) | [inline] |
Definition at line 51 of file termgenerator_internal.cc.
References Xapian::Unicode::get_category(), Xapian::Unicode::LOWERCASE_LETTER, Xapian::Unicode::MODIFIER_LETTER, Xapian::Unicode::OTHER_LETTER, and Xapian::Unicode::TITLECASE_LETTER.
Referenced by Xapian::TermGenerator::Internal::index_text().
| string Xapian::sortable_serialise | ( | double | value | ) |
Convert a floating point number to a string, preserving sort order.
This method converts a floating point number to a string, suitable for using as a value for numeric range restriction, or for use as a sort key.
The conversion is platform independent.
The conversion attempts to ensure that, for any pair of values supplied to the conversion algorithm, the result of comparing the original values (with a numeric comparison operator) will be the same as the result of comparing the resulting values (with a string comparison operator). On platforms which represent doubles with the precisions specified by IEEE_754, this will be the case: if the representation of doubles is more precise, it is possible that two very close doubles will be mapped to the same string, so will compare equal.
Note also that both zero and -zero will be converted to the same representation: since these compare equal, this satisfies the comparison constraint, but it's worth knowing this if you wish to use the encoding in some situation where this distinction matters.
Handling of NaN isn't (currently) guaranteed to be sensible.
| value | The number to serialise. |
Definition at line 44 of file sortable-serialise.cc.
References Assert.
Referenced by DEFINE_TESTCASE(), FileIndexer::next(), Xapian::NumberValueRangeProcessor::operator()(), test_qp_value_range3(), and test_value_range_serialise1().
| double Xapian::sortable_unserialise | ( | const std::string & | value | ) |
Convert a string encoded using sortable_serialise back to a floating point number.
This expects the input to be a string produced by sortable_serialise(). If the input is not such a string, the value returned is undefined (but no error will be thrown).
The result of the conversion will be exactly the value which was supplied to sortable_serialise() when making the string on platforms which represent doubles with the precisions specified by IEEE_754, but may be a different (nearby) value on other platforms.
| value | The serialised string to decode. |
Definition at line 176 of file sortable-serialise.cc.
References Assert, and numfromstr().
Referenced by Xapian::ValueWeightPostingSource::get_weight(), Xapian::ValueWeightPostingSource::init(), and test_value_range_serialise1().
| bool Xapian::U_isupper | ( | unsigned | ch | ) | [inline] |
Definition at line 41 of file termgenerator_internal.cc.
References C_isupper().
Referenced by Xapian::TermGenerator::Internal::index_text(), and Xapian::QueryParser::Internal::parse_term().
| const char * Xapian::version_string | ( | ) |
Report the version string of the library which the program is linked with.
This may be different to the version compiled against (given by XAPIAN_VERSION) if shared libraries are being used.
Definition at line 25 of file version.cc.
References XAPIAN_VERSION.
Referenced by PerfTestLogger::open().
| static bool Xapian::vet_dm | ( | int | d, | |
| int | m | |||
| ) | [static] |
Definition at line 102 of file valuerangeproc.cc.
References max_month_length.
Referenced by Xapian::DateValueRangeProcessor::operator()().
| Xapian::XAPIAN_NORETURN | ( | static void | only_one_subdatabase_allowed() | ) |
| const valueno Xapian::BAD_VALUENO = static_cast<valueno>(-1) |
Reserved value to indicate "no valueno".
Definition at line 107 of file types.h.
Referenced by RemoteDatabase::add_document(), RemoteDatabase::cancel(), DEFINE_TESTCASE(), RemoteDatabase::delete_document(), ChertValueManager::get_value_stats(), BrassValueManager::get_value_stats(), RemoteServer::msg_query(), AuthorValueRangeProcessor::operator()(), Xapian::NumberValueRangeProcessor::operator()(), Xapian::DateValueRangeProcessor::operator()(), Xapian::StringValueRangeProcessor::operator()(), RemoteDatabase::reopen(), RemoteDatabase::replace_document(), ChertValueManager::reset(), BrassValueManager::reset(), Xapian::Enquire::set_collapse_key(), ChertValueManager::set_value_stats(), BrassValueManager::set_value_stats(), and State::value_range().
| const int Xapian::DB_CREATE = 2 |
Create a new database; fail if db exists.
Definition at line 930 of file database.h.
Referenced by BrassDatabase::BrassDatabase(), ChertDatabase::ChertDatabase(), BackendManager::createdb_brass(), BackendManager::createdb_chert(), BackendManager::createdb_flint(), DEFINE_TESTCASE(), FlintDatabase::FlintDatabase(), BackendManager::getwritedb_brass(), BackendManager::getwritedb_chert(), BackendManager::getwritedb_flint(), Xapian::DatabaseReplica::Internal::Internal(), and main().
| const int Xapian::DB_CREATE_OR_OPEN = 1 |
Open for read/write; create if no db exists.
Definition at line 928 of file database.h.
Referenced by DEFINE_TESTCASE(), and main().
| const int Xapian::DB_CREATE_OR_OVERWRITE = 3 |
Overwrite existing db; create if none exists.
Definition at line 932 of file database.h.
Referenced by BrassDatabase::BrassDatabase(), ChertDatabase::ChertDatabase(), BackendManagerMulti::createdb_multi(), DEFINE_TESTCASE(), FlintDatabase::FlintDatabase(), main(), test_qp_scale1(), test_qp_spell1(), test_qp_spell2(), test_qp_spellpartial1(), test_qp_spellwild1(), test_qp_synonym1(), test_qp_synonym2(), test_qp_synonym3(), and test_tg_spell1().
| const int Xapian::DB_OPEN = 4 |
Open for read/write; fail if no db exists.
Definition at line 934 of file database.h.
Referenced by Xapian::DatabaseReplica::Internal::apply_next_changeset(), BrassDatabase::BrassDatabase(), ChertDatabase::ChertDatabase(), DEFINE_TESTCASE(), FlintDatabase::FlintDatabase(), Xapian::DatabaseReplica::Internal::get_revision_info(), BackendManagerFlint::get_writable_database_again(), BackendManagerChert::get_writable_database_again(), BackendManagerBrass::get_writable_database_again(), Xapian::DatabaseReplica::Internal::Internal(), RemoteServer::msg_writeaccess(), and Xapian::DatabaseReplica::Internal::possibly_make_offline_live().
const char Xapian::max_month_length[12] [static] |
Initial value:
{
31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
}
Definition at line 97 of file valuerangeproc.cc.
Referenced by vet_dm().
| const unsigned Xapian::UNICODE_IGNORE = numeric_limits<unsigned>::max() |
Value representing "ignore this" when returned by check_infix() or check_infix_digit().
Definition at line 65 of file termgenerator_internal.cc.
Referenced by check_infix(), check_infix_digit(), Xapian::TermGenerator::Internal::index_text(), and Xapian::QueryParser::Internal::parse_term().