on 07-11-2007 8:48 AM
Hey,
is there a performace difference between MEIterator and java.util.Vector?
What is the recommendation to use?
Philipp
Hi Philipp,
To be precise a vector is more like a container (list), an iterator is more like a pointer for this kind of a list.
You have to use both a container and an iterator. Do you want to know the difference between Iterator and MEIterator?
Best Regards,
Karthik
Message was edited by:
Karthik V Setty
(Oops! a vector is supported in 1.1.8 hence I changed some of the content)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey,
what structure should i use if i have an array of data. is it better to use meiterator or vector?
i dont need access to one specific element. i just wanna put an unknows amout of element in there and get them all back out again.
Philipp
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Philip,
When we query the client db using smart sync API, the out put can be placed
in MeIterator by calling
MeIterator iteratorRows = dataFacade.getRows(syncBoQuery).iterator();
Once the data is placed in an iterator it can be placed either in an arrayList or Vector by iterating each elemant of the MeIterator.
So both MeIterator and Vecor are needed. ArrayList is not supported in jdk 1.1.8 and Vector is(As is mentioned by Karthik),which is the JDK used by cReme.
want the differences between arrayList and vector
http://www.javaworld.com/javaworld/javaqa/2001-06/03-qa-0622-vector.html
Thanks
Veerabhadram
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.