|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cyc.tool.subl.util.SubLTrampolineFile
com.cyc.tool.subl.util.SubLTranslatedFile
com.cyc.cycjava.cycl.kb_indexing_datastructures
public final class kb_indexing_datastructures
Nested Class Summary | |
---|---|
static class |
kb_indexing_datastructures.$fully_indexed_term_p$UnaryFunction
|
static class |
kb_indexing_datastructures.$indexed_term_p$UnaryFunction
|
static class |
kb_indexing_datastructures.$invalid_indexed_termP$UnaryFunction
|
Nested classes/interfaces inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
SubLTranslatedFile.SubL |
Fields inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
EMPTY_SUBL_OBJECT_ARRAY |
Method Summary | |
---|---|
static SubLObject |
assertion_indexing_store_get(SubLObject assertion)
|
static SubLObject |
assertion_indexing_store_initial_size(SubLObject estimated_assertion_count)
|
static SubLObject |
assertion_indexing_store_initialize(SubLObject estimated_assertion_count)
|
static SubLObject |
assertion_indexing_store_reset(SubLObject store)
|
static SubLObject |
assertion_indexing_store_set(SubLObject assertion,
SubLObject index)
|
static SubLObject |
complex_index_leaf_count(SubLObject complex_index)
|
static SubLObject |
complex_index_lookup(SubLObject complex_index,
SubLObject key)
|
static SubLObject |
complex_index_p(SubLObject object)
|
static SubLObject |
declare_kb_indexing_datastructures_file()
|
void |
declareFunctions()
Declares the mapping between functions and symbols for all named functions defined in the file. |
static SubLObject |
do_intermediate_index_valid_index_p(SubLObject object)
|
static SubLObject |
do_simple_index_term_assertion_list(SubLObject v_term)
|
static SubLObject |
final_index_delete(SubLObject final_index,
SubLObject leaf)
Is not required to check for multiple elements to delete |
static SubLObject |
final_index_insert(SubLObject final_index,
SubLObject leaf)
Is not required to check for membership before insertion |
static SubLObject |
final_index_leaf_count(SubLObject final_index)
|
static SubLObject |
final_index_p(SubLObject object)
|
static SubLObject |
final_index_set(SubLObject final_index)
returns the set datastructure in FINAL-INDEX. |
static SubLObject |
free_complex_index(SubLObject complex_index)
Frees all resources consumed by COMPLEX-INDEX |
static SubLObject |
free_index(SubLObject index)
Frees all resources consumed by INDEX |
static SubLObject |
free_intermediate_index(SubLObject intermediate_index)
Frees all resources consumed by INTERMEDIATE-INDEX |
static SubLObject |
free_subindex(SubLObject subindex)
Frees all resources consumed by SUBINDEX |
static SubLObject |
free_term_index(SubLObject v_term)
Frees all resources consumed by the index for TERM |
static SubLObject |
fully_indexed_term_p(SubLObject object)
Return T iff OBJECT is the type which will be indexed in the other index, if necessary. |
static SubLObject |
indexed_term_p(SubLObject object)
Returns T iff OBJECT is an indexed CycL term, e.g. |
static SubLObject |
indexed_unrepresented_term_p(SubLObject object)
Returns T iff OBJECT is an indexed unrepresented CycL term, e.g., a string or number. |
static SubLObject |
init_kb_indexing_datastructures_file()
|
static SubLObject |
initialize_term_complex_index(SubLObject v_term)
Initializes a complex index for TERM. |
static SubLObject |
initialize_term_intermediate_index(SubLObject v_term)
Initializes a top-level intermediate index for TERM. |
static SubLObject |
initialize_term_subindex(SubLObject v_term)
Initializes a subindex for TERM. |
void |
initializeVariables()
Initializes all global variables and private internal variables for constants defined in the file. |
static SubLObject |
intermediate_index_delete_key(SubLObject intermediate_index,
SubLObject key)
Delete any mapping from KEY to a subindex in INTERMEDIATE-INDEX. |
static SubLObject |
intermediate_index_delete(SubLObject intermediate_index,
SubLObject keys,
SubLObject leaf)
|
static SubLObject |
intermediate_index_dictionary_delete_key(SubLObject intermediate_index,
SubLObject key)
|
static SubLObject |
intermediate_index_dictionary_set(SubLObject intermediate_index,
SubLObject key,
SubLObject value)
|
static SubLObject |
intermediate_index_dictionary(SubLObject intermediate_index)
assumes INTERMEDIATE-INDEX is dictionary-style |
static SubLObject |
intermediate_index_insert_int(SubLObject intermediate_index,
SubLObject keys,
SubLObject leaf,
SubLObject key_history)
Insert LEAF at KEYS, having already gone down the keys in KEY-HISTORY |
static SubLObject |
intermediate_index_insert(SubLObject intermediate_index,
SubLObject keys,
SubLObject leaf)
|
static SubLObject |
intermediate_index_keys(SubLObject intermediate_index)
|
static SubLObject |
intermediate_index_leaf_count_inc(SubLObject intermediate_index,
SubLObject delta)
|
static SubLObject |
intermediate_index_leaf_count_reset(SubLObject intermediate_index,
SubLObject new_count)
|
static SubLObject |
intermediate_index_leaf_count(SubLObject intermediate_index)
|
static SubLObject |
intermediate_index_lookup_or_create_final(SubLObject intermediate_index,
SubLObject key)
|
static SubLObject |
intermediate_index_lookup_or_create_intermediate(SubLObject intermediate_index,
SubLObject key,
SubLObject key_history)
Having already gone down the keys in KEY-HISTORY, look up KEY in INTERMEDIATE-INDEX. |
static SubLObject |
intermediate_index_lookup(SubLObject intermediate_index,
SubLObject key)
|
static SubLObject |
intermediate_index_p(SubLObject object)
|
static SubLObject |
intermediate_index_set(SubLObject intermediate_index,
SubLObject key,
SubLObject value)
does not reset the counts |
static SubLObject |
new_final_index()
|
static SubLObject |
new_intermediate_index(SubLObject test_function)
|
static SubLObject |
new_simple_index()
Returns a new empty simple index. |
static SubLObject |
reset_term_index(SubLObject v_term,
SubLObject index)
Primitively replaces TERM's index with INDEX. |
static SubLObject |
reset_term_simple_index(SubLObject v_term,
SubLObject simple_index)
|
void |
runTopLevelForms()
Runs all top-level forms in order. |
static SubLObject |
setup_indexing_tables(SubLObject estimated_size)
sets up all tables needed for the KB indexing |
static SubLObject |
setup_kb_indexing_datastructures_file()
|
static SubLObject |
simple_index_p(SubLObject object)
Return T iff OBJECT is a simple index. |
static SubLObject |
simple_indexed_term_p(SubLObject v_term)
|
static SubLObject |
simple_num_index(SubLObject v_term)
|
static SubLObject |
simple_term_assertion_list(SubLObject v_term)
|
static SubLObject |
subindex_leaf_count(SubLObject subindex)
|
static SubLObject |
subindex_lookup(SubLObject subindex,
SubLObject key)
|
static SubLObject |
subindex_p(SubLObject object)
|
static SubLObject |
term_complex_index_lookup(SubLObject v_term,
SubLObject key)
|
static SubLObject |
term_index(SubLObject v_term)
|
static SubLObject |
unindexed_syntax_constant_p(SubLObject object)
Return T iff OBJECT is a constants which is part of the syntax and therefore not fully indexed. |
static SubLObject |
valid_fully_indexed_term_p(SubLObject object)
Return T iff OBJECT is the type which will be indexed in the other index, if necessary, and is valid. |
static SubLObject |
valid_indexed_termP(SubLObject object)
Returns T iff OBJECT is a valid indexed CycL term, i.e. |
Methods inherited from class com.cyc.tool.subl.util.SubLTranslatedFile |
---|
extractFunctionNamed |
Methods inherited from class com.cyc.tool.subl.util.SubLTrampolineFile |
---|
checkType, enforceType, extractBinaryFunc, extractCount, extractEnd, extractEndUsingSize, extractPackage, extractStart, extractUnaryFunc, main |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SubLFile me
public static final java.lang.String myName
public static final SubLSymbol $sym0$_ASSERTION_INDEXING_STORE_
public static final SubLFloat $float1$0_015
public static final SubLInteger $int2$64
public static final SubLList $list3
public static final SubLSymbol $sym4$INDEXED_TERM_P
public static final SubLList $list5
public static final SubLString $str6$Returns_T_iff_OBJECT_is_an_indexe
public static final SubLList $list7
public static final SubLList $list8
public static final SubLString $str9$mapping_Cyc_indexed_terms
public static final SubLSymbol $sym10$PROGN
public static final SubLSymbol $sym11$DO_FORTS
public static final SubLSymbol $sym12$DO_ASSERTIONS
public static final SubLSymbol $sym13$DO_KB_UNREPRESENTED_TERMS
public static final SubLSymbol $kw14$PROGRESS_MESSAGE
public static final SubLString $str15$_S_is_not_indexed
public static final SubLSymbol $sym16$INDEXING_LEAF_INSTALLED_P
public static final SubLSymbol $sym17$SIMPLE_INDEXED_TERM_P
public static final SubLSymbol $sym18$DO_SIMPLE_INDEX_TERM_ASSERTION_LIST
public static final SubLSymbol $sym19$DO_SIMPLE_INDEX
public static final SubLSymbol $sym20$SIMPLE_INDEX_P
public static final SubLSymbol $sym21$COMPLEX_INDEX_P
public static final SubLString $str22$_s_is_not_a_SUBINDEX_P
public static final SubLSymbol $sym23$INTERMEDIATE_INDEX_P
public static final SubLList $list24
public static final SubLList $list25
public static final SubLSymbol $kw26$ALLOW_OTHER_KEYS
public static final SubLSymbol $kw27$DONE
public static final SubLSymbol $sym28$INDEX
public static final SubLSymbol $sym29$CLET
public static final SubLSymbol $sym30$PWHEN
public static final SubLSymbol $sym31$DO_INTERMEDIATE_INDEX_VALID_INDEX_P
public static final SubLSymbol $sym32$DO_DICTIONARY
public static final SubLSymbol $sym33$INTERMEDIATE_INDEX_DICTIONARY
public static final SubLSymbol $sym34$DO_INTERMEDIATE_INDEX
public static final SubLSymbol $sym35$SUBINDEX_P
public static final SubLList $list36
public static final SubLSymbol $sym37$FINAL_INDEX_P
public static final SubLList $list38
public static final SubLSymbol $sym39$INDEX
public static final SubLSymbol $sym40$DO_FINAL_INDEX_VALID_INDEX_P
public static final SubLSymbol $sym41$DO_SET
public static final SubLSymbol $sym42$FINAL_INDEX_SET
public static final SubLSymbol $sym43$DO_FINAL_INDEX
Method Detail |
---|
public static final SubLObject setup_indexing_tables(SubLObject estimated_size)
estimated-size;
- estimated # of constantspublic static final SubLObject assertion_indexing_store_reset(SubLObject store)
public static final SubLObject assertion_indexing_store_initial_size(SubLObject estimated_assertion_count)
public static final SubLObject assertion_indexing_store_initialize(SubLObject estimated_assertion_count)
public static final SubLObject assertion_indexing_store_get(SubLObject assertion)
public static final SubLObject assertion_indexing_store_set(SubLObject assertion, SubLObject index)
public static final SubLObject unindexed_syntax_constant_p(SubLObject object)
public static final SubLObject indexed_term_p(SubLObject object)
public static final SubLObject indexed_unrepresented_term_p(SubLObject object)
public static final SubLObject valid_indexed_termP(SubLObject object)
public static final SubLObject fully_indexed_term_p(SubLObject object)
public static final SubLObject valid_fully_indexed_term_p(SubLObject object)
public static final SubLObject term_index(SubLObject v_term)
public static final SubLObject reset_term_index(SubLObject v_term, SubLObject index)
INDEX
- index-ppublic static final SubLObject free_index(SubLObject index)
public static final SubLObject free_term_index(SubLObject v_term)
public static final SubLObject simple_index_p(SubLObject object)
public static final SubLObject simple_indexed_term_p(SubLObject v_term)
public static final SubLObject new_simple_index()
public static final SubLObject simple_num_index(SubLObject v_term)
public static final SubLObject simple_term_assertion_list(SubLObject v_term)
public static final SubLObject do_simple_index_term_assertion_list(SubLObject v_term)
public static final SubLObject reset_term_simple_index(SubLObject v_term, SubLObject simple_index)
public static final SubLObject complex_index_p(SubLObject object)
public static final SubLObject complex_index_leaf_count(SubLObject complex_index)
public static final SubLObject complex_index_lookup(SubLObject complex_index, SubLObject key)
public static final SubLObject term_complex_index_lookup(SubLObject v_term, SubLObject key)
public static final SubLObject initialize_term_complex_index(SubLObject v_term)
public static final SubLObject free_complex_index(SubLObject complex_index)
public static final SubLObject subindex_p(SubLObject object)
public static final SubLObject subindex_lookup(SubLObject subindex, SubLObject key)
public static final SubLObject subindex_leaf_count(SubLObject subindex)
public static final SubLObject initialize_term_subindex(SubLObject v_term)
public static final SubLObject free_subindex(SubLObject subindex)
public static final SubLObject intermediate_index_p(SubLObject object)
public static final SubLObject new_intermediate_index(SubLObject test_function)
public static final SubLObject do_intermediate_index_valid_index_p(SubLObject object)
public static final SubLObject intermediate_index_lookup(SubLObject intermediate_index, SubLObject key)
public static final SubLObject intermediate_index_keys(SubLObject intermediate_index)
public static final SubLObject intermediate_index_leaf_count(SubLObject intermediate_index)
public static final SubLObject intermediate_index_set(SubLObject intermediate_index, SubLObject key, SubLObject value)
public static final SubLObject intermediate_index_insert(SubLObject intermediate_index, SubLObject keys, SubLObject leaf)
public static final SubLObject intermediate_index_insert_int(SubLObject intermediate_index, SubLObject keys, SubLObject leaf, SubLObject key_history)
public static final SubLObject intermediate_index_delete(SubLObject intermediate_index, SubLObject keys, SubLObject leaf)
public static final SubLObject intermediate_index_delete_key(SubLObject intermediate_index, SubLObject key)
public static final SubLObject initialize_term_intermediate_index(SubLObject v_term)
public static final SubLObject free_intermediate_index(SubLObject intermediate_index)
public static final SubLObject intermediate_index_leaf_count_reset(SubLObject intermediate_index, SubLObject new_count)
public static final SubLObject intermediate_index_leaf_count_inc(SubLObject intermediate_index, SubLObject delta)
public static final SubLObject intermediate_index_lookup_or_create_intermediate(SubLObject intermediate_index, SubLObject key, SubLObject key_history)
public static final SubLObject intermediate_index_lookup_or_create_final(SubLObject intermediate_index, SubLObject key)
public static final SubLObject intermediate_index_dictionary(SubLObject intermediate_index)
public static final SubLObject intermediate_index_dictionary_set(SubLObject intermediate_index, SubLObject key, SubLObject value)
public static final SubLObject intermediate_index_dictionary_delete_key(SubLObject intermediate_index, SubLObject key)
public static final SubLObject final_index_p(SubLObject object)
public static final SubLObject new_final_index()
public static final SubLObject final_index_leaf_count(SubLObject final_index)
public static final SubLObject final_index_insert(SubLObject final_index, SubLObject leaf)
public static final SubLObject final_index_delete(SubLObject final_index, SubLObject leaf)
public static final SubLObject final_index_set(SubLObject final_index)
public static final SubLObject declare_kb_indexing_datastructures_file()
public static final SubLObject init_kb_indexing_datastructures_file()
public static final SubLObject setup_kb_indexing_datastructures_file()
public void declareFunctions()
SubLFile
public void initializeVariables()
SubLFile
public void runTopLevelForms()
SubLFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |