Skip to main content

%iKnow.LB.Languagebase

SQL Table Name: %iKnow_LB.Languagebase

Property Inventory

Method Inventory

Properties

property EntryCount as %Integer [ Required ];
Property methods: EntryCount(), EntryCountDisplayToLogical(), EntryCountGet(), EntryCountGetStored(), EntryCountIsValid(), EntryCountLogicalToDisplay(), EntryCountNormalize(), EntryCountSet()
property Hash as %String;
Property methods: HashDisplayToLogical(), HashGet(), HashGetStored(), HashIsValid(), HashLogicalToDisplay(), HashLogicalToOdbc(), HashNormalize(), HashSet()
property Name as %String [ Required ];
Property methods: NameDisplayToLogical(), NameGet(), NameGetStored(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()

Methods

method AddToHash(string As %String)
Adds a value to this Knowledgebase's hash. The ultimate hash value is dependent on the sequence of values passed to this function.
classmethod ClearAll()
Clears all language bases and their corresponding entries
method EntryCount() as %Integer
classmethod GetByName(name As %String) as Languagebase
Retrieves the Languagebase with the given name, returning "" if not found.
method GetEntry(key As %String) as Entry
Returns the AbstractEntry of this Languagebase corresponding to the key
method GetEntryRaw(key As %String) as %List
Returns the raw (serialized, $list) version of the entry corresponding to the key
method GetHash() as %String
Returns a hash based on the content of this Knowledgebase
method GetName() as %String
Returns the name of the Languagebase
classmethod Load(name As %String, fileName As %String, obfuscate As %Boolean = 1, complete As %Boolean = 0) as Languagebase
classmethod LoadDir(dir As %String, forcemulticompile As %Boolean = "", obfuscate As %Boolean = 1, complete As %Boolean = 0) as %Status
method NextEntry(key As %String = "") as %String
Returns the key for the next entry after that corresponding to the given key. Returns the empty string if none remain.

Queries

query ScoreOrder(langId As %Integer)
SQL Query:
SELECT %ID FROM Entry Where Languagebase = :langId Order By Score Desc

Indexes

index (IDKEY on ) [IdKey, Type = key];
Index methods: IDKEYCheck(), IDKEYDelete(), IDKEYExists(), IDKEYOpen(), IDKEYSQLCheckUnique(), IDKEYSQLExists(), IDKEYSQLFindPKeyByConstraint(), IDKEYSQLFindRowIDByConstraint()
index (NameIndex on Name) [Unique];
Index methods: NameIndexCheck(), NameIndexCheckUnique(), NameIndexDelete(), NameIndexExists(), NameIndexOpen(), NameIndexSQLCheckUnique(), NameIndexSQLExists(), NameIndexSQLFindPKeyByConstraint(), NameIndexSQLFindRowIDByConstraint()

Inherited Members

Inherited Methods

Storage

Storage Model: CacheStorage (%iKnow.LB.Languagebase)

^%iKnow("LB","LanguagebaseD")(ID)
=
%%CLASSNAME
Name
EntryCount
Hash
FeedbackOpens in a new tab