From: Rodrigo C. <rn...@gm...> - 2007-03-01 02:05:51
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> For a SimpleContext, or something similar:<br> <br> The comparison operator could just compare the arrays containing the internal state of Navigator.<br> <br> The hashcode would be the XOR of all elements in the array, that implements java hashcode and equals in a compatible way with the assumed rules in java libraries.<br> <br> Jimmy, I think my "SimpleContext" or whatever you want to call it, if properly implemented and perhaps with a few extra functions could solve all the problems of random access.<br> <br> I think we just want something with the functionality of push() and pop() but that can be extracted and kept outside, memorizing the equivalent of a single stack position, and perhaps with a bit more functionality.<br> <br> Jimmy Zhang wrote: <blockquote cite="mid007001c75b8c$f5e9fc90$0d02a8c0@ximpleware" type="cite"> <pre wrap="">sounds good to me... ----- Original Message ----- From: "Tatu Saloranta" <a class="moz-txt-link-rfc2396E" href="mailto:cow...@ya..."><cow...@ya...></a> To: <a class="moz-txt-link-rfc2396E" href="mailto:vtd...@li..."><vtd...@li...></a> Sent: Wednesday, February 28, 2007 2:59 PM Subject: Re: [Vtd-xml-users] Random Access Proposal (take 2) </pre> <blockquote type="cite"> <pre wrap="">--- Mark Swanson <a class="moz-txt-link-rfc2396E" href="mailto:ma...@Sc..."><ma...@Sc...></a> wrote: ... </pre> <blockquote type="cite"> <pre wrap="">It would be most helpful to me if I could index arbitrary element indexes and start and XPath query from one of these indexes. I would cache these indexes in a Map with key: some unique ID, value: some sort of vtd-xml node index. </pre> </blockquote> <pre wrap="">Given that VTD-XML indices are, well, ints, would this be anything more than a kind of Map<String,int>? (or, a stack thereof). That seems like a simple thing to build even outside of VTD-XML itself? Just curious, -+ Tatu +- ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. <a class="moz-txt-link-freetext" href="http://tools.search.yahoo.com/shortcuts/#news">http://tools.search.yahoo.com/shortcuts/#news</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Vtd-xml-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vtd...@li...">Vtd...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/vtd-xml-users">https://lists.sourceforge.net/lists/listinfo/vtd-xml-users</a> </pre> </blockquote> <pre wrap=""><!----> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Vtd-xml-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Vtd...@li...">Vtd...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/vtd-xml-users">https://lists.sourceforge.net/lists/listinfo/vtd-xml-users</a> </pre> </blockquote> <br> </body> </html> |