cancel
Showing results for 
Search instead for 
Did you mean: 

Performance MEIterator

Former Member
0 Kudos

Hey,

is there a performace difference between MEIterator and java.util.Vector?

What is the recommendation to use?

Philipp

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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