class %iKnow.Filters.RandomFilter extends %iKnow.Filters.Filter
This filter randomly selects a percentage of the existing sources in the current domain, to be used for analysis or query testing.
- pDomainId As %Integer
- pDelect As %Numeric - if this is a value between 0 and 1, it is interpreted as the desired selectivity of the filter or the share of the total number of sources to select. If this value is >= 1, it is considered to be the desired number of sources to select (rounded down). If this value is larger than the total number of sources in this domain, all sources are selected.
- pSelectFrom As %iKnow.Filters.Filter - if set to a valid filter object or string representation, the randomly selected sources are selected from this set only. If select refers to a fraction, the fraction is calculated based on the total number of sources filtered by selectFrom as if it were "the full domain" to select from.
Property Inventory (Including Private)
Method Inventory (Including Private)
Properties (Including Private)
Methods (Including Private)
If this method returns an error then the object will not be created.
It is passed the arguments provided in the %New call. When customizing this method, override the arguments with whatever variables and types you expect to receive from %New(). For example, if you're going to call %New, passing 2 arguments, %OnNew's signature could be:
Method %OnNew(dob as %Date = "", name as %Name = "") as %Status If instead of returning a %Status code this returns an oref and this oref is a subclass of the current class then this oref will be the one returned to the caller of %New method.
Subclasses should implement this method to build a string representation of the filter instance. It should start with the filter class name, followed by a pipe (|) character and then a string representation that can be interpreted by its RestoreFilterFromStringInternal() implementation.
Inherited Properties (Including Private)
Inherited Methods (Including Private)