IDZEBRA
2.2.7
|
Go to the source code of this file.
Data Structures | |
struct | RecordAttr |
Macros | |
#define | STRCASECMP strcasecmp |
Typedefs | |
typedef ZEBRA_RES | ZebraExplainUpdateFunc(void *handle, Record drec, data1_node *n) |
typedef struct zebraExplainInfo * | ZebraExplainInfo |
typedef struct zebDatabaseInfo | ZebDatabaseInfo |
Enumerations | |
enum | zinfo_index_category_t { zinfo_index_category_index , zinfo_index_category_sort , zinfo_index_category_alwaysmatches , zinfo_index_category_anchor } |
typedef struct zebDatabaseInfo ZebDatabaseInfo |
typedef struct zebraExplainInfo* ZebraExplainInfo |
typedef ZEBRA_RES ZebraExplainUpdateFunc(void *handle, Record drec, data1_node *n) |
RecordAttr* rec_init_attr | ( | ZebraExplainInfo | zei, |
Record | rec | ||
) |
Definition at line 1594 of file zinfo.c.
References record_info::info, recInfo_attr, RecordAttr::recordOffset, RecordAttr::recordSize, zebraExplainInfo::runNumber, RecordAttr::runNumber, record_info::size, and RecordAttr::staticrank.
Referenced by zebra_create_record_stream(), zebra_extract_record_stream(), zebra_record_fetch(), and zebra_special_fetch().
int zebraExplain_add_attr_str | ( | ZebraExplainInfo | zei, |
zinfo_index_category_t | cat, | ||
const char * | index_type, | ||
const char * | str | ||
) |
Definition at line 1545 of file zinfo.c.
References zebSUInfoB::info, zebraExplainInfo::nmem, zebSUInfo::ordinal, zebSUInfo::str, and zebraExplain_add_sui_info().
Referenced by extract_add_index_string(), and extract_add_sort_string().
int zebraExplain_add_attr_su | ( | ZebraExplainInfo | zei, |
int | index_type, | ||
int | set, | ||
int | use | ||
) |
void zebraExplain_addSchema | ( | ZebraExplainInfo | zei, |
Odr_oid * | oid | ||
) |
Definition at line 1556 of file zinfo.c.
References zebraExplainInfo::accessInfo, zebraExplainInfo::curDatabaseInfo, zebAccessInfoB::schemas, and zebraExplain_announceOid().
Referenced by extract_schema_add().
void zebraExplain_close | ( | ZebraExplainInfo | zei | ) |
Definition at line 209 of file zinfo.c.
References zebraExplainInfo::nmem, zebraExplainInfo::updateHandle, and zebraExplain_flush().
Referenced by zebra_register_close().
int zebraExplain_curDatabase | ( | ZebraExplainInfo | zei, |
const char * | database | ||
) |
Definition at line 790 of file zinfo.c.
References zebDatabaseInfoB::attributeDetails, zebraExplainInfo::curDatabaseInfo, zebraExplainInfo::databaseInfo, zebDatabaseInfoB::databaseName, zebDatabaseInfoB::next, zebAttributeDetails::readFlag, zebDatabaseInfoB::readFlag, STRCASECMP, zebraExplain_readAttributeDetails(), and zebraExplain_readDatabase().
Referenced by resultSetSortSingle(), rpn_scan(), rpn_search_APT(), zebra_begin_trans(), zebra_drop_database(), zebra_extract_explain(), zebra_extract_record_stream(), zebra_recid_to_sysno(), and zebra_update_file_match().
void zebraExplain_flush | ( | ZebraExplainInfo | zei, |
void * | updateHandle | ||
) |
Definition at line 168 of file zinfo.c.
References zebraExplainInfo::accessInfo, zebDatabaseInfoB::attributeDetails, zebAccessInfoB::attributeSetIds, zebraExplainInfo::categoryList, zebraExplainInfo::databaseInfo, zebDatabaseInfoB::databaseName, zebAccessObjectB::next, zebDatabaseInfoB::next, zebAccessInfoB::schemas, zebAccessObjectB::sysno, zebraExplainInfo::updateHandle, zebraExplainInfo::write_flag, zebraExplain_writeAttributeDetails(), zebraExplain_writeAttributeSet(), zebraExplain_writeCategoryList(), zebraExplain_writeDatabase(), and zebraExplain_writeTarget().
Referenced by zebra_flush_reg(), and zebraExplain_close().
int zebraExplain_get_database_ord | ( | ZebraExplainInfo | zei | ) |
Definition at line 1620 of file zinfo.c.
References zebraExplainInfo::curDatabaseInfo, and zebDatabaseInfoB::ordinalDatabase.
Referenced by zebra_drop_database(), zebra_extract_record_stream(), and zebra_open_fmatch().
void zebraExplain_loadAttsets | ( | data1_handle | dh, |
Res | res | ||
) |
Definition at line 1627 of file zinfo.c.
References att_loadset(), and res_trav().
Referenced by att_getentbyatt().
int zebraExplain_lookup_attr_str | ( | ZebraExplainInfo | zei, |
zinfo_index_category_t | cat, | ||
const char * | index_type, | ||
const char * | str | ||
) |
lookup ordinal from string index + index type
zei | explain info |
cat | category |
index_type | index type |
str | index string |
Definition at line 1353 of file zinfo.c.
References zebDatabaseInfoB::attributeDetails, zebraExplainInfo::curDatabaseInfo, zebSUInfoB::info, zebSUInfoB::next, zebSUInfo::ordinal, and zebAttributeDetails::SUInfo.
Referenced by extract_add_index_string(), extract_add_sort_string(), facet_fetch(), resultSetSortSingle(), search_group(), searchRecordKey(), snippet_token_add(), sort_fetch(), special_index_fetch(), xpath_trunc(), zebra_apt_get_ord(), zebra_attr_list_get_ord(), and zebra_recid_to_sysno().
int zebraExplain_lookup_ord | ( | ZebraExplainInfo | zei, |
int | ord, | ||
const char ** | index_type, | ||
const char ** | db, | ||
const char ** | string_index | ||
) |
Definition at line 1478 of file zinfo.c.
References zebSUInfo::index_type, zebSUInfoB::info, zebSUInfo::str, and zebraExplain_get_sui_info().
Referenced by add_isam_p(), begin(), print_dict_item(), print_rec_keys(), resultSetSortSingle(), snippet_check_fields(), snippet_xml_record(), sort_fetch(), special_index_xml_record(), zebra_it_key_str_dump(), zebra_log_dict_entry(), and zebra_rec_keys_to_snippets1().
int zebraExplain_newDatabase | ( | ZebraExplainInfo | zei, |
const char * | database, | ||
int | explain_database | ||
) |
Definition at line 882 of file zinfo.c.
References zebDatabaseInfoB::accessInfo, zebDatabaseInfoB::attributeDetails, zebraExplainInfo::curDatabaseInfo, zebDatabaseInfoB::data1_database, data1_mk_tag_data_text(), data1_pr_tree(), data1_read_sgml(), data1_search_tag(), zebAttributeDetails::data1_tree, zebraExplainInfo::databaseInfo, zebDatabaseInfoB::databaseName, zebraExplainInfo::dh, zebAttributeDetails::dirty, zebDatabaseInfoB::dirty, zebraExplainInfo::dirty, zebDatabaseInfoB::next, zebraExplainInfo::nmem, zebDatabaseInfoB::ordinalDatabase, zebraExplainInfo::ordinalDatabase, zebAttributeDetails::readFlag, zebDatabaseInfoB::readFlag, zebDatabaseInfoB::recordBytes, zebDatabaseInfoB::recordCount, STRCASECMP, zebAttributeDetails::SUInfo, zebAttributeDetails::sysno, zebDatabaseInfoB::sysno, zebraExplain_initAccessInfo(), zebraExplain_initCommonInfo(), and zebraExplain_mergeAccessInfo().
Referenced by zebra_create_database(), zebra_extract_explain(), zebra_extract_record_stream(), zebra_update_file_match(), and zebraExplain_open().
ZebraExplainInfo zebraExplain_open | ( | Records | records, |
data1_handle | dh, | ||
Res | res, | ||
int | writeFlag, | ||
void * | updateHandle, | ||
ZebraExplainUpdateFunc * | updateFunc | ||
) |
Definition at line 331 of file zinfo.c.
References zebraExplainInfo::accessInfo, atoi_zn(), zebraExplainInfo::attsets, zebraExplainInfo::categoryList, data1_node::child, zebraExplainInfo::curDatabaseInfo, data1_node::data, zebraCategoryListInfo::data1_categoryList, data1_get_absyn(), data1_nodetoidsgml(), data1_pr_tree(), data1_read_sgml(), data1_search_tag(), zebraExplainInfo::data1_target, DATA1_XPATH_INDEXING_DISABLE, DATA1N_data, DATA1N_tag, zebraExplainInfo::databaseInfo, zebraExplainInfo::date, zebraExplainInfo::dh, zebraCategoryListInfo::dirty, zebraExplainInfo::dirty, record_info::info, data1_node::next, zebDatabaseInfoB::next, zebraExplainInfo::nmem, zebraExplainInfo::ordinalDatabase, zebraExplainInfo::ordinalSU, read_sgml_rec(), zebDatabaseInfoB::readFlag, rec_free(), rec_get_root(), rec_new(), rec_put(), rec_strdup(), recInfo_databaseName, recInfo_fileType, recInfo_storeData, zebraExplainInfo::records, zebraExplainInfo::res, res_get_def(), zebraExplainInfo::runNumber, record_info::size, zebraCategoryListInfo::sysno, data1_node::tag, data1_node::u, zebraExplainInfo::updateFunc, zebraExplainInfo::updateHandle, data1_node::which, zebraExplainInfo::write_flag, zebraExplain_initAccessInfo(), zebraExplain_initCommonInfo(), zebraExplain_mergeAccessInfo(), zebraExplain_newDatabase(), and ZINT_FORMAT.
Referenced by zebra_register_open().
int zebraExplain_ord_adjust_occurrences | ( | ZebraExplainInfo | zei, |
int | ord, | ||
int | term_delta, | ||
int | doc_delta | ||
) |
Definition at line 1435 of file zinfo.c.
References zebSUInfo::doc_occurrences, zebSUInfoB::info, zebSUInfo::term_occurrences, and zebraExplain_get_sui_info().
Referenced by extract_rec_keys_adjust().
zint zebraExplain_ord_get_doc_occurrences | ( | ZebraExplainInfo | zei, |
int | ord | ||
) |
Definition at line 1462 of file zinfo.c.
References zebSUInfo::doc_occurrences, zebSUInfoB::info, and zebraExplain_get_sui_info().
Referenced by begin().
zint zebraExplain_ord_get_term_occurrences | ( | ZebraExplainInfo | zei, |
int | ord | ||
) |
Definition at line 1470 of file zinfo.c.
References zebSUInfoB::info, zebSUInfo::term_occurrences, and zebraExplain_get_sui_info().
Referenced by begin().
void zebraExplain_recordBytesIncrement | ( | ZebraExplainInfo | zei, |
int | adjust_num | ||
) |
Definition at line 1563 of file zinfo.c.
References zebraExplainInfo::curDatabaseInfo, zebDatabaseInfoB::dirty, and zebDatabaseInfoB::recordBytes.
Referenced by zebra_extract_record_stream().
void zebraExplain_recordCountIncrement | ( | ZebraExplainInfo | zei, |
int | adjust_num | ||
) |
Definition at line 1574 of file zinfo.c.
References zebraExplainInfo::curDatabaseInfo, zebDatabaseInfoB::dirty, and zebDatabaseInfoB::recordCount.
Referenced by extract_flush_record_keys2().
int zebraExplain_removeDatabase | ( | ZebraExplainInfo | zei, |
void * | updateHandle | ||
) |
Definition at line 751 of file zinfo.c.
References zebDatabaseInfoB::attributeDetails, zebraExplainInfo::curDatabaseInfo, zebraExplainInfo::databaseInfo, zebraExplainInfo::dirty, zebDatabaseInfoB::next, rec_del(), rec_get(), zebraExplainInfo::records, zebAttributeDetails::sysno, zebDatabaseInfoB::sysno, zebraExplainInfo::updateFunc, and zebraExplainInfo::updateHandle.
Referenced by zebra_drop_database().
zint zebraExplain_runNumberIncrement | ( | ZebraExplainInfo | zei, |
int | adjust_num | ||
) |
Definition at line 1585 of file zinfo.c.
References zebraExplainInfo::dirty, and zebraExplainInfo::runNumber.
Referenced by zebra_end_transaction(), and zebra_extract_record_stream().
int zebraExplain_trav_ord | ( | ZebraExplainInfo | zei, |
void * | handle, | ||
int(*)(void *handle, int ord, const char *index_type, const char *string_index, zinfo_index_category_t cat) | f | ||
) |
Definition at line 1380 of file zinfo.c.
References zebDatabaseInfoB::attributeDetails, zebSUInfo::cat, zebraExplainInfo::curDatabaseInfo, zebSUInfo::index_type, zebSUInfoB::info, zebSUInfoB::next, zebSUInfo::ordinal, zebSUInfo::str, and zebAttributeDetails::SUInfo.
Referenced by zebra_drop_database().