Class Reference
Cache for UNIX 2018.1.2
InterSystems: The power behind what matters   
Documentation  Search
Private  Storage  

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.

Filter parameters:

  1. pDomainId As %Integer
  2. 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.
  3. 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.


Parameters Properties Methods Queries Indices ForeignKeys Triggers


DomainId FilteredSourceCount IsCached Selectivity

%AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified
%OriginalNamespace %PackageName %RemoveFromSaveSet
%SerializeObject %SetModified %ValidateObject
CheckResultCache CheckResultCacheSingle ClearCachedFilter
ClearCachedFilters CreateAsString CreateFromBitstring
CreateGroupAsString FromString GetCRCOccurrenceFilter
GetCRCUniqueFilter GetCcUniqueFilter GetEntityOccurrenceFilter
GetEntityUniqueFilter GetFilteredCcFrequency GetFilteredCcSpread
GetFilteredCrcFrequency GetFilteredCrcSpread GetFilteredEntityFrequency
GetFilteredEntitySpread GetFilteredEntityUniqueCount GetFilteredStemFrequency
GetFilteredStemSpread GetFirstFilteredSource GetNextCRCOccurrenceFilterOffset
GetNextCRCUniqueFilterOffset GetNextCcUniqueFilterOffset GetNextEntityOccurrenceFilterOffset
GetNextEntityUniqueFilterOffset GetNextPathFilterOffset GetNextSourceFilterOffset
GetNextSrcId GetPathFilter GetSourceFilter
Initialize Invalidate IsFiltered
IsValid RestoreFilterFromId RestoreFilterFromString
StoreResultCache StoreResultCacheSingle ToString


• method ToString() as %String

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.

Copyright © 1997-2019, InterSystems Corporation