| 579 | class QuantizedIndex : public NGTQG::Index { |
| 580 | public: |
| 581 | QuantizedIndex( |
| 582 | const std::string path, // ngt index path. |
| 583 | size_t maxNoOfEdges, // the maximum number of quantized graph edges. |
| 584 | bool zeroBasedNumbering, // object ID numbering. |
| 585 | bool treeDisabled, // not use the tree index. |
| 586 | bool logDisabled // stderr log is disabled. |
| 587 | ):NGTQG::Index(path, maxNoOfEdges) { |
| 588 | zeroNumbering = zeroBasedNumbering; |
| 589 | numOfDistanceComputations = 0; |
| 590 | treeIndex = !treeDisabled; |
| 591 | withDistance = true;; |
| 592 | defaultNumOfSearchObjects = 20; |
| 593 | defaultEpsilon = 0.02; |
| 594 | defaultRadius = FLT_MAX; |
| 595 | defaultResultExpansion = 3.0; |
| 596 | defaultEdgeSize = 0; // not used |
| 597 | #ifdef NGTQG_PROBE |
| 598 | defaultProbe = 10; |
| 599 | #endif |
| 600 | if (logDisabled) { |
| 601 | NGT::Index::disableLog(); |
| 602 | } else { |
| 603 | NGT::Index::enableLog(); |
| 604 | } |
| 605 | } |
| 606 | |
| 607 | py::object search( |
| 608 | py::object query, |
nothing calls this directly
no outgoing calls
no test coverage detected