Dear Wiki user, You have subscribed to a wiki page or wiki category on "Devicemap Wiki" for change notification.
The "Patterns2" page has been changed by rezan: https://wiki.apache.org/devicemap/Patterns2?action=diff&rev1=9&rev2=10 SimpleHashCount:: :: Type: integer - :: Optional. Default: none + :: Optional. Default: none. Must be defined before the pattern set. == PatternType == @@ -174, +174 @@ The following rank types are defined: Strong:: - :: Strong patterns are ranked higher than Weak and None. The Rank``Value is ignored and they are ranked by their position in the pattern stream. Specifically, the last pattern token position making the pattern successful. The lower the position, the higher the rank. When a Strong pattern is found, the pattern matching step can stop and this pattern can be returned without analyzing the rest of the stream. This is because its impossible for another pattern to rank higher. + :: Strong patterns are ranked higher than Weak and None. The Rank``Value is ignored and they are ranked by their position in the pattern stream. Specifically, the last matched token position. The lower the position, the higher the rank. When a Strong pattern is found, the pattern matching step can stop and this pattern can be returned without analyzing the rest of the stream. This is because its impossible for another pattern to rank higher. Weak:: :: Weak patterns are ranked below Strong but above None. A Weak pattern can only be returned in the absence of a Strong pattern. Weak patterns always rank higher than None patterns, regardless of their Rank``Value. The Rank``Value is used to rank between successfully matched Weak patterns. @@ -184, +184 @@ In the case where 2 or more patterns have the same Rank``Type and Rank``Value resulting in a tie, the pattern with the longest concatenated matched pattern length is used. If that results in - another tie, the pattern with the first pattern token found is returned. + another tie, the pattern with the first matched token found is returned. If no pattern is successfully matched, the Default``Id is returned. If no Default``Id is defined, a null pattern is returned.
