class %iKnow.Source.Domain.Processor extends %iKnow.Source.Processor
This Processor implementation reads data from existing sources in a (typically different) domain, as listed by the ExpandList method of the %iKnow.Source.Domain.Lister. These Lister and Processor classes are at the core of the %iKnow.Utils.CopyUtils and %iKnow.Utils.UpgradeUtils classes.
- srcDomainId As %Integer - the domain where to copy data from. (only required when specifying metaFields)
- metaFields As %List (optional) - the metadata fields to copy from the source domain into the target one.
- overrideLanguage As %String (optional) - the two-letter language code of a language to use overriding what can be derived from the source domain. Leave blank to use source domain values and use "AUTO" to re-detect using normal configuration settings.
- preserveSentences As %Boolean (optional, defaults to 1) - whether or not to preserve the exact same sentence splittings as in the original indexation.
Extracted metadata keys: see metaFields Processor parameter.
Property Inventory (Including Private)
Method Inventory (Including Private)
Properties (Including Private)
Methods (Including Private)
This is the primary method that will need to be implemented by subclasses. It gets the local ID of the source being processed (as assigned by the lister) and the Composite Reference in %List format. Data read by the Processor should be buffered through calling ..Buffer.BufferString(), which will automatically forward the data to the iKnow Indexing engine or, if configured, a %iKnow.Source.Converter object that will in turn push converted data through to the engine.
If this Processor also extracts metadata while reading (as specified in its GetMetadataKeys() implementation), it should make sure to invoke SetCurrentMetadataValues() at some point in this methods execution.
This method is called from ProcessListElement() and ProcessVirtualListElement() right before calling on the Indexer to process the data read by this Processor instance. It returns the language (two-letter ISO code) for the source being processed, if there is any means to derive it from known facts about the source. If no language can be derived with enough certainty, this method returns "".
The default implementation looks if there is a $$$IKPLANGUAGEFIELDNAME parameter defined pointing to a metadata field containing the language code. Subclasses may override and/or extend this method if they have access to additional information.
Subclasses should override this method to identify those metadata keys that are calculated or extracted by this Processor implementation and will be registered for every source processed by calling SetCurrentMetadataValues() during the FetchSource() execution.
Inherited Properties (Including Private)
Inherited Methods (Including Private)