1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Xapian: API Documentation: Xapian::FixedWeightPostingSource Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceXapian.html">Xapian</a></li><li class="navelem"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html">FixedWeightPostingSource</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classXapian_1_1FixedWeightPostingSource-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">Xapian::FixedWeightPostingSource Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A posting source which returns a fixed weight for all documents.
<a href="classXapian_1_1FixedWeightPostingSource.html#details">More...</a></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
<img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for Xapian::FixedWeightPostingSource:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classXapian_1_1FixedWeightPostingSource__inherit__graph.png" border="0" usemap="#Xapian_1_1FixedWeightPostingSource_inherit__map" alt="Inheritance graph"/></div>
<map name="Xapian_1_1FixedWeightPostingSource_inherit__map" id="Xapian_1_1FixedWeightPostingSource_inherit__map">
<area shape="rect" id="node2" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. " alt="" coords="21,80,176,107"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a82d389768f1d69221cab83d74732fd16"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a82d389768f1d69221cab83d74732fd16">FixedWeightPostingSource</a> (double wt)</td></tr>
<tr class="memdesc:a82d389768f1d69221cab83d74732fd16"><td class="mdescLeft"> </td><td class="mdescRight">Construct a <a class="el" href="classXapian_1_1FixedWeightPostingSource.html" title="A posting source which returns a fixed weight for all documents. ">FixedWeightPostingSource</a>. <a href="#a82d389768f1d69221cab83d74732fd16">More...</a><br /></td></tr>
<tr class="separator:a82d389768f1d69221cab83d74732fd16"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae22eeb74290e601e58efcb1f89c5e446"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#ae22eeb74290e601e58efcb1f89c5e446">get_termfreq_min</a> () const</td></tr>
<tr class="memdesc:ae22eeb74290e601e58efcb1f89c5e446"><td class="mdescLeft"> </td><td class="mdescRight">A lower bound on the number of documents this object can return. <a href="#ae22eeb74290e601e58efcb1f89c5e446">More...</a><br /></td></tr>
<tr class="separator:ae22eeb74290e601e58efcb1f89c5e446"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab30ce9ad09792a948bbb3b6670d73525"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#ab30ce9ad09792a948bbb3b6670d73525">get_termfreq_est</a> () const</td></tr>
<tr class="memdesc:ab30ce9ad09792a948bbb3b6670d73525"><td class="mdescLeft"> </td><td class="mdescRight">An estimate of the number of documents this object can return. <a href="#ab30ce9ad09792a948bbb3b6670d73525">More...</a><br /></td></tr>
<tr class="separator:ab30ce9ad09792a948bbb3b6670d73525"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a10ccfe06a7c5cf60bd9118b938d753f8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a10ccfe06a7c5cf60bd9118b938d753f8">get_termfreq_max</a> () const</td></tr>
<tr class="memdesc:a10ccfe06a7c5cf60bd9118b938d753f8"><td class="mdescLeft"> </td><td class="mdescRight">An upper bound on the number of documents this object can return. <a href="#a10ccfe06a7c5cf60bd9118b938d753f8">More...</a><br /></td></tr>
<tr class="separator:a10ccfe06a7c5cf60bd9118b938d753f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a74d1255de88916bf823b902c5da77f66"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a74d1255de88916bf823b902c5da77f66">get_weight</a> () const</td></tr>
<tr class="memdesc:a74d1255de88916bf823b902c5da77f66"><td class="mdescLeft"> </td><td class="mdescRight">Return the weight contribution for the current document. <a href="#a74d1255de88916bf823b902c5da77f66">More...</a><br /></td></tr>
<tr class="separator:a74d1255de88916bf823b902c5da77f66"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5387052adf96613d7528862ef5ffd3ce"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce">next</a> (double min_wt)</td></tr>
<tr class="memdesc:a5387052adf96613d7528862ef5ffd3ce"><td class="mdescLeft"> </td><td class="mdescRight">Advance the current position to the next matching document. <a href="#a5387052adf96613d7528862ef5ffd3ce">More...</a><br /></td></tr>
<tr class="separator:a5387052adf96613d7528862ef5ffd3ce"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a90fc7e7c584e400f2eb1442ac02dfba4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4">skip_to</a> (<a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> min_docid, double min_wt)</td></tr>
<tr class="memdesc:a90fc7e7c584e400f2eb1442ac02dfba4"><td class="mdescLeft"> </td><td class="mdescRight">Advance to the specified docid. <a href="#a90fc7e7c584e400f2eb1442ac02dfba4">More...</a><br /></td></tr>
<tr class="separator:a90fc7e7c584e400f2eb1442ac02dfba4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acd408e3a5cb1cdd02b0fa382b1afb9aa"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#acd408e3a5cb1cdd02b0fa382b1afb9aa">check</a> (<a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> min_docid, double min_wt)</td></tr>
<tr class="memdesc:acd408e3a5cb1cdd02b0fa382b1afb9aa"><td class="mdescLeft"> </td><td class="mdescRight">Check if the specified docid occurs. <a href="#acd408e3a5cb1cdd02b0fa382b1afb9aa">More...</a><br /></td></tr>
<tr class="separator:acd408e3a5cb1cdd02b0fa382b1afb9aa"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1902a25f0ca56bfd772225efdce0303b"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a1902a25f0ca56bfd772225efdce0303b">at_end</a> () const</td></tr>
<tr class="memdesc:a1902a25f0ca56bfd772225efdce0303b"><td class="mdescLeft"> </td><td class="mdescRight">Return true if the current position is past the last entry in this list. <a href="#a1902a25f0ca56bfd772225efdce0303b">More...</a><br /></td></tr>
<tr class="separator:a1902a25f0ca56bfd772225efdce0303b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8491b5d1bf7557b7b2e3de30cab07acf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a8491b5d1bf7557b7b2e3de30cab07acf">get_docid</a> () const</td></tr>
<tr class="memdesc:a8491b5d1bf7557b7b2e3de30cab07acf"><td class="mdescLeft"> </td><td class="mdescRight">Return the current docid. <a href="#a8491b5d1bf7557b7b2e3de30cab07acf">More...</a><br /></td></tr>
<tr class="separator:a8491b5d1bf7557b7b2e3de30cab07acf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ffcb0e2bdef666ffed14cdaf1eee0e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html">FixedWeightPostingSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a8ffcb0e2bdef666ffed14cdaf1eee0e4">clone</a> () const</td></tr>
<tr class="memdesc:a8ffcb0e2bdef666ffed14cdaf1eee0e4"><td class="mdescLeft"> </td><td class="mdescRight">Clone the posting source. <a href="#a8ffcb0e2bdef666ffed14cdaf1eee0e4">More...</a><br /></td></tr>
<tr class="separator:a8ffcb0e2bdef666ffed14cdaf1eee0e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1941bb382b3260bdf188151339ebb26b"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a1941bb382b3260bdf188151339ebb26b">name</a> () const</td></tr>
<tr class="memdesc:a1941bb382b3260bdf188151339ebb26b"><td class="mdescLeft"> </td><td class="mdescRight">Name of the posting source class. <a href="#a1941bb382b3260bdf188151339ebb26b">More...</a><br /></td></tr>
<tr class="separator:a1941bb382b3260bdf188151339ebb26b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3341be21837bf85c2061a5fa9fe682c2"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3341be21837bf85c2061a5fa9fe682c2">serialise</a> () const</td></tr>
<tr class="memdesc:a3341be21837bf85c2061a5fa9fe682c2"><td class="mdescLeft"> </td><td class="mdescRight">Serialise object parameters into a string. <a href="#a3341be21837bf85c2061a5fa9fe682c2">More...</a><br /></td></tr>
<tr class="separator:a3341be21837bf85c2061a5fa9fe682c2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a241fae1eb9fca4d72b65c3ca9b313ffb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html">FixedWeightPostingSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a241fae1eb9fca4d72b65c3ca9b313ffb">unserialise</a> (const std::string &serialised) const</td></tr>
<tr class="memdesc:a241fae1eb9fca4d72b65c3ca9b313ffb"><td class="mdescLeft"> </td><td class="mdescRight">Create object given string serialisation returned by <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3341be21837bf85c2061a5fa9fe682c2" title="Serialise object parameters into a string. ">serialise()</a>. <a href="#a241fae1eb9fca4d72b65c3ca9b313ffb">More...</a><br /></td></tr>
<tr class="separator:a241fae1eb9fca4d72b65c3ca9b313ffb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3c9698d1d0d4d47247bd19451e1e2077"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077">init</a> (const <a class="el" href="classXapian_1_1Database.html">Database</a> &db_)</td></tr>
<tr class="memdesc:a3c9698d1d0d4d47247bd19451e1e2077"><td class="mdescLeft"> </td><td class="mdescRight">Set this <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> to the start of the list of postings. <a href="#a3c9698d1d0d4d47247bd19451e1e2077">More...</a><br /></td></tr>
<tr class="separator:a3c9698d1d0d4d47247bd19451e1e2077"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a89edb2843e09624e63d06246ec21d768"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a89edb2843e09624e63d06246ec21d768">get_description</a> () const</td></tr>
<tr class="memdesc:a89edb2843e09624e63d06246ec21d768"><td class="mdescLeft"> </td><td class="mdescRight">Return a string describing this object. <a href="#a89edb2843e09624e63d06246ec21d768">More...</a><br /></td></tr>
<tr class="separator:a89edb2843e09624e63d06246ec21d768"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classXapian_1_1PostingSource"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classXapian_1_1PostingSource')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classXapian_1_1PostingSource.html">Xapian::PostingSource</a></td></tr>
<tr class="memitem:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a id="a82e85d6113d9c8e72cbbf4b3362f3fd6"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a82e85d6113d9c8e72cbbf4b3362f3fd6">PostingSource</a> ()</td></tr>
<tr class="memdesc:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Allow subclasses to be instantiated. <br /></td></tr>
<tr class="separator:a82e85d6113d9c8e72cbbf4b3362f3fd6 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a7201a6a189625b17f501561dcc3ea8a1">set_maxweight</a> (double max_weight)</td></tr>
<tr class="memdesc:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Specify an upper bound on what <a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a" title="Return the weight contribution for the current document. ">get_weight()</a> will return from now on. <a href="classXapian_1_1PostingSource.html#a7201a6a189625b17f501561dcc3ea8a1">More...</a><br /></td></tr>
<tr class="separator:a7201a6a189625b17f501561dcc3ea8a1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a id="a1a447843283a8ef88b3d4662c97c87b4"></a>
double </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a1a447843283a8ef88b3d4662c97c87b4">get_maxweight</a> () const</td></tr>
<tr class="memdesc:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Return the currently set upper bound on what <a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a" title="Return the weight contribution for the current document. ">get_weight()</a> can return. <br /></td></tr>
<tr class="separator:a1a447843283a8ef88b3d4662c97c87b4 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a4cadf2ff56f9e456e1f5a6b684cdb128">unserialise_with_registry</a> (const std::string &serialised, const <a class="el" href="classXapian_1_1Registry.html">Registry</a> &registry) const</td></tr>
<tr class="memdesc:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Create object given string serialisation returned by <a class="el" href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894" title="Serialise object parameters into a string. ">serialise()</a>. <a href="classXapian_1_1PostingSource.html#a4cadf2ff56f9e456e1f5a6b684cdb128">More...</a><br /></td></tr>
<tr class="separator:a4cadf2ff56f9e456e1f5a6b684cdb128 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a24d51135b279b59bccb37d42bc2062f1">release</a> ()</td></tr>
<tr class="memdesc:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Start reference counting this object. <a href="classXapian_1_1PostingSource.html#a24d51135b279b59bccb37d42bc2062f1">More...</a><br /></td></tr>
<tr class="separator:a24d51135b279b59bccb37d42bc2062f1 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classXapian_1_1PostingSource.html">PostingSource</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXapian_1_1PostingSource.html#a15a62840bd29a630b8641722c2b8cbf8">release</a> () const</td></tr>
<tr class="memdesc:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="mdescLeft"> </td><td class="mdescRight">Start reference counting this object. <a href="classXapian_1_1PostingSource.html#a15a62840bd29a630b8641722c2b8cbf8">More...</a><br /></td></tr>
<tr class="separator:a15a62840bd29a630b8641722c2b8cbf8 inherit pub_methods_classXapian_1_1PostingSource"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A posting source which returns a fixed weight for all documents. </p>
<p>This returns entries for all documents in the given database, with a fixed weight (specified by a parameter to the constructor). </p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="a82d389768f1d69221cab83d74732fd16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82d389768f1d69221cab83d74732fd16">◆ </a></span>FixedWeightPostingSource()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Xapian::FixedWeightPostingSource::FixedWeightPostingSource </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>wt</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a <a class="el" href="classXapian_1_1FixedWeightPostingSource.html" title="A posting source which returns a fixed weight for all documents. ">FixedWeightPostingSource</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">wt</td><td>The fixed weight to return. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1902a25f0ca56bfd772225efdce0303b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1902a25f0ca56bfd772225efdce0303b">◆ </a></span>at_end()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Xapian::FixedWeightPostingSource::at_end </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return true if the current position is past the last entry in this list. </p>
<p>At least one of <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce" title="Advance the current position to the next matching document. ">next()</a></em>, <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a></em> or <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#acd408e3a5cb1cdd02b0fa382b1afb9aa" title="Check if the specified docid occurs. ">check()</a></em> will be called before this method is first called. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a98831c9fdea1599f588cd9fef51bbeb5">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="acd408e3a5cb1cdd02b0fa382b1afb9aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd408e3a5cb1cdd02b0fa382b1afb9aa">◆ </a></span>check()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool Xapian::FixedWeightPostingSource::check </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> </td>
<td class="paramname"><em>did</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>min_wt</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Check if the specified docid occurs. </p>
<p>The caller is required to ensure that the specified document id <em>did</em> actually exists in the database. If it does, it must move to that document id, and return true. If it does not, it may either:</p>
<ul>
<li>return true, having moved to a definite position (including "at_end"), which must be the same position as <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> would have moved to.</li>
</ul>
<p>or</p>
<ul>
<li>return false, having moved to an "indeterminate" position, such that a subsequent call to <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce" title="Advance the current position to the next matching document. ">next()</a> or <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> will move to the next matching position after <em>did</em>.</li>
</ul>
<p>Generally, this method should act like <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> and return true if that can be done at little extra cost.</p>
<p>Otherwise it should simply check if a particular docid is present, returning true if it is, and false if it isn't.</p>
<p>The default implementation calls <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> and always returns true.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time.</p>
<p>Note: in the case of a multi-database search, the docid specified is the docid in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">did</td><td>The document id to check. </td></tr>
<tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a964696f90b6485bf3c931ccf4546a273">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a8ffcb0e2bdef666ffed14cdaf1eee0e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ffcb0e2bdef666ffed14cdaf1eee0e4">◆ </a></span>clone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html">FixedWeightPostingSource</a>* Xapian::FixedWeightPostingSource::clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Clone the posting source. </p>
<p>The clone should inherit the configuration of the parent, but need not inherit the state. ie, the clone does not need to be in the same iteration position as the original: the matcher will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on the clone before attempting to move the iterator, or read the information about the current position of the iterator.</p>
<p>This may return NULL to indicate that cloning is not supported. In this case, the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> may only be used with a single-database search.</p>
<p>The default implementation returns NULL.</p>
<p>Note that the returned object will be deallocated by <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> after use with "delete". If you want to handle the deletion in a special way (for example when wrapping the <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> API for use from another language) then you can define a static <code>operator delete</code> method in your subclass as shown here: <a href="https://trac.xapian.org/ticket/554#comment:1">https://trac.xapian.org/ticket/554#comment:1</a> </p>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#ab41013bf3d3dc7d433430a69466b8582">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a89edb2843e09624e63d06246ec21d768"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a89edb2843e09624e63d06246ec21d768">◆ </a></span>get_description()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string Xapian::FixedWeightPostingSource::get_description </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a string describing this object. </p>
<p>This default implementation returns a generic answer. This default it provided to avoid forcing those deriving their own <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> subclass from having to implement this (they may not care what <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a89edb2843e09624e63d06246ec21d768" title="Return a string describing this object. ">get_description()</a> gives for their subclass). </p>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a8a619b261e7d9db7cb7ccef9869afac8">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a8491b5d1bf7557b7b2e3de30cab07acf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8491b5d1bf7557b7b2e3de30cab07acf">◆ </a></span>get_docid()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> Xapian::FixedWeightPostingSource::get_docid </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the current docid. </p>
<p>This method may assume that it will only be called when there is a "current document". See <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a74d1255de88916bf823b902c5da77f66" title="Return the weight contribution for the current document. ">get_weight()</a></em> for details.</p>
<p>Note: in the case of a multi-database search, the returned docid should be in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a7b1bd1fcd07d69204f70155588ae544a">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="ab30ce9ad09792a948bbb3b6670d73525"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab30ce9ad09792a948bbb3b6670d73525">◆ </a></span>get_termfreq_est()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::FixedWeightPostingSource::get_termfreq_est </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An estimate of the number of documents this object can return. </p>
<p>It must always be true that:</p>
<p><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#ae22eeb74290e601e58efcb1f89c5e446" title="A lower bound on the number of documents this object can return. ">get_termfreq_min()</a> <= <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#ab30ce9ad09792a948bbb3b6670d73525" title="An estimate of the number of documents this object can return. ">get_termfreq_est()</a> <= <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a10ccfe06a7c5cf60bd9118b938d753f8" title="An upper bound on the number of documents this object can return. ">get_termfreq_max()</a></p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a0d67eda5783f82951d6c56ad7ff4205b">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a10ccfe06a7c5cf60bd9118b938d753f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a10ccfe06a7c5cf60bd9118b938d753f8">◆ </a></span>get_termfreq_max()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::FixedWeightPostingSource::get_termfreq_max </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>An upper bound on the number of documents this object can return. </p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a17de27c84a052c51d62ad498151a4cab">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="ae22eeb74290e601e58efcb1f89c5e446"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae22eeb74290e601e58efcb1f89c5e446">◆ </a></span>get_termfreq_min()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespaceXapian.html#a9bbd62a8e56ea4619e4e59afb32aced6">Xapian::doccount</a> Xapian::FixedWeightPostingSource::get_termfreq_min </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>A lower bound on the number of documents this object can return. </p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a5ecf450314e8b266eb9c8fae78e141d3">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a74d1255de88916bf823b902c5da77f66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74d1255de88916bf823b902c5da77f66">◆ </a></span>get_weight()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">double Xapian::FixedWeightPostingSource::get_weight </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the weight contribution for the current document. </p>
<p>This default implementation always returns 0, for convenience when implementing "weight-less" <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> subclasses.</p>
<p>This method may assume that it will only be called when there is a "current document". In detail: <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time. It will also only call this if the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> reports that it is pointing to a valid document (ie, it will not call it before calling at least one of <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce" title="Advance the current position to the next matching document. ">next()</a>, <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> or <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#acd408e3a5cb1cdd02b0fa382b1afb9aa" title="Check if the specified docid occurs. ">check()</a>, and will ensure that the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> is not at the end by calling <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a1902a25f0ca56bfd772225efdce0303b" title="Return true if the current position is past the last entry in this list. ">at_end()</a>). </p>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a3922b7e3572eea6d3e39fc26cc7fed7a">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a3c9698d1d0d4d47247bd19451e1e2077"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c9698d1d0d4d47247bd19451e1e2077">◆ </a></span>init()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Xapian::FixedWeightPostingSource::init </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classXapian_1_1Database.html">Database</a> & </td>
<td class="paramname"><em>db</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Set this <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> to the start of the list of postings. </p>
<p>This is called automatically by the matcher prior to each query being processed.</p>
<p>If a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> is used for multiple searches, <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> will therefore be called multiple times, and must handle this by using the database passed in the most recent call.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">db</td><td>The database which the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> should iterate through.</td></tr>
</table>
</dd>
</dl>
<p>Note: in the case of a multi-database search, a separate <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> will be used for each database (the separate PostingSources will be obtained using <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a8ffcb0e2bdef666ffed14cdaf1eee0e4" title="Clone the posting source. ">clone()</a></em>), and each <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> will be passed one of the sub-databases as the <em>db</em> parameter here. The <em>db</em> parameter will therefore always refer to a single database. All docids passed to, or returned from, the <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> refer to docids in that single database, rather than in the multi-database. </p>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a81d793170b496022488c15c3508979b5">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a1941bb382b3260bdf188151339ebb26b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1941bb382b3260bdf188151339ebb26b">◆ </a></span>name()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string Xapian::FixedWeightPostingSource::name </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Name of the posting source class. </p>
<p>This is used when serialising and unserialising posting sources; for example, for performing remote searches.</p>
<p>If the subclass is in a C++ namespace, the namespace should be included in the name, using "::" as a separator. For example, for a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> subclass called "FooPostingSource" in the "Xapian" namespace the result of this call should be "Xapian::FooPostingSource".</p>
<p>This should only be implemented if <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3341be21837bf85c2061a5fa9fe682c2" title="Serialise object parameters into a string. ">serialise()</a> and <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a241fae1eb9fca4d72b65c3ca9b313ffb" title="Create object given string serialisation returned by serialise(). ">unserialise()</a> are also implemented. The default implementation returns an empty string.</p>
<p>If this returns an empty string, <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will assume that <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3341be21837bf85c2061a5fa9fe682c2" title="Serialise object parameters into a string. ">serialise()</a> and <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a241fae1eb9fca4d72b65c3ca9b313ffb" title="Create object given string serialisation returned by serialise(). ">unserialise()</a> are not implemented. </p>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a6cbbe96a7bb0d2a8c9de3d5d8b99675d">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a5387052adf96613d7528862ef5ffd3ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5387052adf96613d7528862ef5ffd3ce">◆ </a></span>next()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Xapian::FixedWeightPostingSource::next </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>min_wt</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Advance the current position to the next matching document. </p>
<p>The <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> starts before the first entry in the list, so <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce" title="Advance the current position to the next matching document. ">next()</a> must be called before any methods which need the context of the current position.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="classXapian_1_1PostingSource.html#a150c4c07ff4e959f448dd8cf840968e8">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a3341be21837bf85c2061a5fa9fe682c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3341be21837bf85c2061a5fa9fe682c2">◆ </a></span>serialise()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::string Xapian::FixedWeightPostingSource::serialise </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Serialise object parameters into a string. </p>
<p>The serialised parameters should represent the configuration of the posting source, but need not (indeed, should not) represent the current iteration state.</p>
<p>If you don't want to support the remote backend, you can use the default implementation which simply throws <a class="el" href="classXapian_1_1UnimplementedError.html" title="UnimplementedError indicates an attempt to use an unimplemented feature. ">Xapian::UnimplementedError</a>. </p>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a0ad6b98d6b5e79a37b7a1d7874725894">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a90fc7e7c584e400f2eb1442ac02dfba4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a90fc7e7c584e400f2eb1442ac02dfba4">◆ </a></span>skip_to()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Xapian::FixedWeightPostingSource::skip_to </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceXapian.html#ad8f7a78bc920532b7d2baa3281b33e2f">Xapian::docid</a> </td>
<td class="paramname"><em>did</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>min_wt</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Advance to the specified docid. </p>
<p>If the specified docid isn't in the list, position ourselves on the first document after it (or <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a1902a25f0ca56bfd772225efdce0303b" title="Return true if the current position is past the last entry in this list. ">at_end()</a> if no greater docids are present).</p>
<p>If the current position is already the specified docid, this method will leave the position unmodified.</p>
<p>If the specified docid is earlier than the current position, the behaviour is unspecified. A sensible behaviour would be to leave the current position unmodified, but it is also reasonable to move to the specified docid.</p>
<p>The default implementation calls <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a5387052adf96613d7528862ef5ffd3ce" title="Advance the current position to the next matching document. ">next()</a> repeatedly, which works but <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a90fc7e7c584e400f2eb1442ac02dfba4" title="Advance to the specified docid. ">skip_to()</a> can often be implemented much more efficiently.</p>
<p><a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> will always call <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a> on a <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> before calling this for the first time.</p>
<p>Note: in the case of a multi-database search, the docid specified is the docid in the single subdatabase relevant to this posting source. See the <em><a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3c9698d1d0d4d47247bd19451e1e2077" title="Set this PostingSource to the start of the list of postings. ">init()</a></em> method for details.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">did</td><td>The document id to advance to. </td></tr>
<tr><td class="paramname">min_wt</td><td>The minimum weight contribution that is needed (this is just a hint which subclasses may ignore). </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#acf18a9328d8e46c3a759a3a120009607">Xapian::PostingSource</a>.</p>
</div>
</div>
<a id="a241fae1eb9fca4d72b65c3ca9b313ffb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a241fae1eb9fca4d72b65c3ca9b313ffb">◆ </a></span>unserialise()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classXapian_1_1FixedWeightPostingSource.html">FixedWeightPostingSource</a>* Xapian::FixedWeightPostingSource::unserialise </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>serialised</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create object given string serialisation returned by <a class="el" href="classXapian_1_1FixedWeightPostingSource.html#a3341be21837bf85c2061a5fa9fe682c2" title="Serialise object parameters into a string. ">serialise()</a>. </p>
<p>Note that the returned object will be deallocated by <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> after use with "delete". If you want to handle the deletion in a special way (for example when wrapping the <a class="el" href="namespaceXapian.html" title="The Xapian namespace contains public interfaces for the Xapian library. ">Xapian</a> API for use from another language) then you can define a static <code>operator delete</code> method in your subclass as shown here: <a href="https://trac.xapian.org/ticket/554#comment:1">https://trac.xapian.org/ticket/554#comment:1</a></p>
<p>If you don't want to support the remote backend, you can use the default implementation which simply throws <a class="el" href="classXapian_1_1UnimplementedError.html" title="UnimplementedError indicates an attempt to use an unimplemented feature. ">Xapian::UnimplementedError</a>.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">serialised</td><td>A serialised instance of this <a class="el" href="classXapian_1_1PostingSource.html" title="Base class which provides an "external" source of postings. ">PostingSource</a> subclass. </td></tr>
</table>
</dd>
</dl>
<p>Reimplemented from <a class="el" href="classXapian_1_1PostingSource.html#a6aa8602abb801a2a366a6328d36ba4a9">Xapian::PostingSource</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>xapian/<a class="el" href="postingsource_8h.html">postingsource.h</a></li>
</ul>
</div><!-- contents -->
<hr>
<address><small>
Documentation for Xapian (version 1.4.3).<br>
Generated on Wed Jan 25 2017 by
<a href="http://www.doxygen.org/">Doxygen 1.8.13</a>.
</small></address>
</body>
</html>
|