Copyright ©1995 by NeXT Computer, Inc. All Rights Reserved.
| 7 |
Indexing Kit
| Classes
IXAttributeParser |
| Inherits From: | Object |
| Initializing an Instance |
| Initializes and returns a new IXAttributeParser |
| Managing Readers |
| Sets the IXAttributeReaders to those in aList, freeing the previous IXAttributeReaders | ||
| Returns in aList the IXAttributeReaders |
| Managing Text Stream Types |
| Returns YES if streams or files of aType are parsed | ||
| Sets aType as a type that will be parsed | ||
| Unsets aType as a type that will be parsed |
| Managing Parse Options |
| Sets the minimum weight for a token to be included | ||
| Returns the minimum weight for a token to be included | ||
| Sets the percent of tokens dropped | ||
| Returns the percent of tokens dropped |
| Sets the weighting domain for caluculating peculiarities |
| Returns the weighting domain | ||
| Sets the type of weighting to calculate | ||
| Returns the type of weighting calculated |
| Parsing Text |
| Parses the contents of filename if possible, adding the | ||
| Parses the contents of stream if possible, adding the | ||
| Parses the contents of filename if possible, adding the | ||
| Parses the contents of stream if possible, adding the | ||
| information and returning the analyzed stream |
| Clears all compiled information in the attribute-value list |
| IXAttributeQuery |
| Inherits From: | Object |
| Initializing an IXAttributeQuery |
| andAttributeParser:(IXAttributeParser *)aParser |
| Initializes a new IXAttributeQuery with aString as |
| the query expression and aParser used to parse it |
| Accessing Attributes |
| Returns the names of attributes in the query string | ||
| Returns the IXAttributeParser |
| Retrieving the Query Expression |
| Returns the query string |
| Evaluating the Query |
| Evaluates the query string against anObject, returning the records that match in an IXPostingList |
| IXAttributeReader |
| Inherits From: | Object |
| Analyzing a Stream of Text |
| Analyzes the text in stream, returning a stream of lexed text in Attribute Reader Format |
| Altering Words |
| Reduces aString to its singular form | ||
| Reduces aString to its base or root form | ||
| Setting Reader Options |
| Sets whether uppercase letters are changed to lowercase | ||
| Returns whether uppercase letters are changed to lowercase | ||
| Sets whether plural words are reduced to singular | ||
| Returns whether plural words are reduced to singular | ||
| Sets whether words are reduced to base or root forms | ||
| Returns whether words are reduced to base or root forms | ||
| Sets the set of characters used to delimit tokens to aString | ||
| Returns the set of characters used to delimit tokens | ||
| Sets the words that are deleted from a stream | ||
| Returns the words that are deleted from a stream |
| IXBTree |
| Inherits From: | Object | |
| Conforms To: | IXBlockAndStoreAccess IXNameAndFileAccess IXComparatorSetting IXComparisonSetting |
| Accessing IXBTree Information |
| Returns the number of key-value pairs in the IXBTree | ||
| Returns the maximumn allowed length for a key |
| Affecting IXBTree Contents |
| Removes the contents of the IXBTree | ||
| Compacts the IXBTree's contents to consume less space |
| Optimizing Performance |
| Keeps the IXBTree small, making insertions slower but seeks faster | ||
| Makes insertions faster, and seeks slower |
| IXBTreeCursor |
| Inherits From: | Object | |
| Conforms To: | IXCursorPositioning |
| Initializing an IXBTreeCursor |
| Initializes a new IXBTreeCursor to move in aBTree |
| Accessing the IXBTree |
| Returns the IXBTree that the cursor moves in |
| Positioning with Hints |
| Positions the IXBTreeCursor at aKey if possible, | ||
| Returns the position of the cursor in aKey and aLength; | ||
| Accessing IXBTree Data |
| Writes or inserts aValue at the cursor's position | ||
| Writes aRange into the value at the cursor's position; | ||
| Reads the value at the cursor's position and returns its length; slides forward if needed to get a value | ||
| Reads a portion of the value at the cursor's position and | ||
| Removes the value at the cursor's position; if the cursor isn't exactly on a key, raises an exception |
| IXFileFinder |
| Inherits From: | Object | |
| Conforms To: | IXBlockAndStoreAccess IXNameAndFileAccess IXFileFinderConfiguration IXFileFinderQueryAndUpdate NXReference |
| Initializing an IXFileFinder |
| Initializes a new IXFileFinder in aStore to index files | ||
| Reloads an IXFileFinder from block aHandle in aStore | ||
| Initializes a new IXFileFinder named aName in filename | ||
| Reloads an IXFileFinder stored under aName in filename, | ||
| IXFileRecord |
| Inherits From: | Object | |
| Conforms To: | NXTransport |
| Initializing a New Instance |
| Initializes a new IXFileRecord for aFileFinder |
| Getting the File Finder |
| Returns the IXFileFinder that the IXFileRecord belongs to |
| Accessing File Attributes |
| Sets the filename that the IXFileRecord refers to to aName | ||
| Returns the filename that the IXFileRecord refers to | ||
| Sets the recorded type for the associated file to aType | ||
| Returns the recorded type for the associated file | ||
| Sets the description for the associated file to aName | ||
| Returns the description for the associated file | ||
| Sets the recorded creation date for the associated file to aDate | ||
| Returns the recorded creation date for the associated file |
| Accessing UNIX File Information |
| Returns the cached UNIX stat buffer for the associated file, or NULL if one hasn't been cached |
| IXLanguageReader |
| Inherits From: | IXAttributeReader : Object | |
| Conforms To: | IXAttributeReading (IXAttributeReader) |
| Getting Language Information |
| + (char *)installedLanguages | Returns the languages for which readers are installed |
| + (Class)classForLanguage:(const char *)aLanguage |
| Returns the IXLanguageReader subclass for aLanguage |
| Getting Objects Associated with Languages |
| + readerForLanguage:(const char *)aLanguage | Returns an IXLanguageReader for aLanguage | |
| + domainForLanguage:(const char *)aLanguage | Returns an IXWeightingDomain for aLanguage |
| Getting the Target Language |
| + (NXAtom)targetLanguage | Returns the target language of the subclass | |
| Returns the target language of the reader |
| Disabling Dynamic Loading |
| + disableLoading | Disables dynamic loading of external language readers |
| IXPostingCursor |
| Inherits From: | IXBTreeCursor : Object | |
| Conforms To: | IXPostingExchange IXPostingOperations IXCursorPositioning (IXBTreeCursor) |
| Methods |
| This class declares no methods. |
| IXPostingList |
| Inherits From: | List : Object | |
| Conforms To: | IXPostingExchange NXTransport |
| Initializing an IXPostingList |
| Initializes a new IXPostingList to extract objects from aSource |
| andPostingsIn:(id <IXPostingExchange>)anObject |
| Initializes a new IXPostingList to extract objects from aSource and initially contain the postings in anObject |
| Retrieving the Source |
| Returns the archive from which objects are extracted |
| Manipulating Objects by Handle |
| Adds a new posting to the end of the list | ||
| Inserts a new posting at index | ||
| Replaces the posting at index with the information supplied | ||
| Manipulating Objects by id |
| Adds anObject to the end of the list with aWeight, but no | ||
| Inserts anObject with aWeight at index, but without a | ||
| Replaces the object at index with the object and weight | ||
| Manipulating Objects by Index |
| Returns the index of the posting with handle handle |
| Returns the handle for the posting at index |
| Returns the weight for the posting at index |
| Sorting the Contents |
| Sorts the postings and objects by their weight | ||
| Sorts the postings and objects based on the return values | ||
| IXPostingSet |
| Inherits From: | Object | |
| Conforms To: | IXPostingExchange IXPostingOperations |
| Initializing Instances |
| Inializes a new IXPostingSet to conatin count postings | ||
| Initializes a new IXPostingSet to contain the postings in anObject |
| Setting the Postings |
| Sets the postings in the IXPostingSet to count postings, | ||
| Accessing Postings by Position |
| Sets the selected posting to the one at position index |
| Performing Set Operations |
| Performs a set union with the postings in anObject, altering the IXPostingSet's contents but not anObject's |
| Performs a set intersection with the postings in anObject, altering the IXPostingSet's contents but not anObject's |
| Performs a set subtraction with the postings in anObject, altering the IXPostingSet's contents but not anObject's |
| IXRecordManager |
| Inherits From: | Object | |
| Conforms To: | IXBlockAndStoreAccess IXNameAndFileAccess IXRecordWriting IXTransientAccess IXTransientMessaging |
| Adding and Removing Attributes |
| Creates an attribute named aName, based on the values | ||
| Removes the attribute named aName |
| Key Comparison |
| Sets the data format used for values in the attribute named | ||
| Returns the data format used for values in the attribute named aName |
| Sets the comparator function and context used for values | ||
| Returns the comparator function and context used for | ||
| Setting Attribute Targets |
| Restricts the attribute named aName to contain references | ||
| Returns the name and class version of the target class for | ||
| Accessing Attributes |
| Returns an IXPostingCursor that may be used to search for values for the attribute named aName |
| Getting Attribute Information |
| Returns the selector used to build the attribute named aName |
| Returns the names of all attributes in the IXRecordManager |
| Accessing Classes |
| Returns the names of all classes that have instances stored in the IXRecordManager | ||
| Returns the names of the attributes in the IXRecordManager that contain references to instances of aClass (or a subclass) | ||
| Returns in an IXPostingList all instances in the IXRecordManager of aClass (but not subclasses) |
| Discarding Records |
| Discards the records identified by aHandle | ||
| Reclaimes the discarded record identified by aHandle | ||
| Returns in an IXPostingList all discarded records | ||
| Permanently deletes all discarded records |
| Setting Attribute Descriptions |
| Sets the description for the attribute named aName to | ||
| Returns the description for the attribute named aName | ||
| Setting Parsers |
| Sets the IXAttributeParser used for the attribute named | ||
| Returns the IXAttributeParser used for the attribute named aName |
| Writing Blobs |
| Stores aValue under blobName on behalf of the record | ||
| Retrieves the value and length for blobName on behalf of | ||
| IXStore |
| Inherits From: | Object |
| Initializing, Copying, and Freeing Instances |
| Initializes a new IXStore | ||
| Returns a copy of the IXStore that references the same storage | ||
| Deallocates the IXStore, and all the storage if it's not shared |
| Creating, Copying, and Freeing Blocks |
| Creates a block of size size and returns its identifier in | ||
| Copies a portion of the block identified by aHandle and | ||
| Frees the block identified by aHandle |
| Opening and Closing Blocks |
| Opens a portion of the block identified by aHandle for | ||
| Opens a portion of the block identified by aHandle for | ||
| Closes the open block identified by aHandle |
| Managing Block Sizes |
| Resizes the block identified by aHandle to aSize | ||
| Returns the size of the block identified by aHandle |
| Using Transactions |
| Starts a new transaction and returns the nested level of transactions pending | ||
| Aborts the current transaction | ||
| Commits the changes made in the current transaction | ||
| Returns YES if a transaction has ever been started | ||
| Returns the nesting level of transactions pending | ||
| Returns the number of commitTransaction and abortTransaction messages received by the instantiation |
| Accessing the Contents |
| Replaces the IXStore's storage with that in someContents | ||
| Returns in theContents and aLength the IXStore's storage | ||
| Reducing Memory Consumption |
| Compacts the blocks of storage to take as little space as possible; delayed until all transactions are finished |
| IXStoreBlock |
| Inherits From: | Object | |
| Conforms To: | IXBlockAndStoreAccess NXReference |
| Accessing the Block's Contents |
| Opens a portion of the block for writing if possible; raises | ||
| Opens a portion of the block for reading if possible; raises | ||
| forLength:(unsigned int)aLength | Copies a portion of the block, returning the copy's |
| Closes the block if it's been opened |
| Managing the Block Size |
| Resizes the block to size | ||
| Returns the size of the block |
| Archiving an Object in an IXStoreBlock |
| Unarchives the object previously archived into the block | ||
| Archives anObject into the block |
| IXStoreDirectory |
| Inherits From: | Object | |
| Conforms To: | IXBlockAndStoreAccess IXNameAndFileAccess |
| Adding Entries or Objects |
| Creates an instance of the store client class named aName, | ||
| Creates an instance of the store client class named aName, | ||
| Stores the store client anObject under aName | ||
| Removing Entries |
| Removes from the IXStore the object stored under aName | ||
| Removes the reference to the object stored under aName, but doesn't remove the object itself | ||
| Empties all stored objects and names | ||
| Removes all references to stored objects, but not the objects themselves |
| Getting Entries |
| Returns whether there's an object stored under aName | ||
| Gets the block identifier for the object stored under aName | ||
| Gets the class object for the object stored under aName | ||
| Activates and returns the object stored under aName | ||
| Returns the stored names |
| IXStoreFile |
| Inherits From: | IXStore : Object |
| Initializing and Freeing Instances |
| Initializes a new IXStoreFile in a temporary file | ||
| Initializes a new IXStoreFile with a file named filename | ||
| Initializes an IXStoreFile from existing storage in filename, | ||
| Frees the IXStoreFile, but doesn't affect the storage file |
| Limiting the File Mapping Size |
| Sets the caching limit for the IXStoreFile to aLimit | ||
| Returns the caching limit for the IXStoreFile |
| Getting File Information |
| Returns the file descriptor for the storage file | ||
| Returns the name of the storage file |
| IXWeightingDomain |
| Inherits From: | Object |
| Initializing Instances |
| Initializes a new IXWeightingDomain from domain format data in stream | ||
| Initializes a new IXWeightingDomain from histogram format data in stream | ||
| Initializes a new IXWeightingDomain from NeXTSTEP 2.0 WFTable format data in stream |
| Saving Domain Information |
| Write domain format data to stream | ||
| Writes histogram format data to stream | ||
| Writes NeXTSTEP 2.0 WFTable format data to stream |
| Counting Tokens |
| Returns the total number of tokens in the weighting domain | ||
| Returns the total number of unque tokens |
| Retrieving Information about Tokens |
| Returns the number of occurrences of aToken in the domain | ||
| Returns the ordinal rank of occurrences of aToken in the | ||
| Returns the frequency of aToken in the domain | ||
| Returns the peculiarity of aToken in the domain | ||