On 5 July 2011 10:54, lansyj <span dir="ltr">&lt;<a href="mailto:lansyjp@gmail.com">lansyjp@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I understand Drools does support enumerated lists of values for checking<br>
conditions and assigning consequences. Am i mistaken?<br></blockquote><div><br>It&#39;s using a Rete network, and I&#39;ve never heard &quot;enumerated lists of values&quot; in any description of the involved algorithms. Where does this come from? <br>
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The ID would be a numeric value of 8 or 12 bytes in length. The Blacklist<br>
validation would be just the basic full word match.<br></blockquote><div><br>Basically a subset of positive &quot;long&quot; values; if area codes are involved, distribution is not regular (even within a certain number of  digits). But a hash lookup on the String value should give you good performance.<br>
<br>   Subscriber( $addr: address )<br>   Blacklist( set contains $addr )<br>then<br>   refuse...<br><br>-W<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
Best Regards<br>
<br>
-lj<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140095.html" target="_blank">http://drools.46999.n3.nabble.com/Using-Enumeration-for-long-lists-tp3140051p3140095.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br>