Re: JAVA API : getElementType()

Visweswara Rao Kottapalli wrote:


getElementType() in the class Array takes a long time to return the type
of the elements in the array. I found this to be unusual. Its taking
around 2.5 seconds to return a datatype.

Am writing a small piece of code for better understanding of what am

Variable v;
String elementType =;

The getElementType() method is taking almost 2.5 seconds to return the
dataType of the elements in the array.

Visweswara Rao Kottapalli

its the that can potentially take that long. you are reading the entire array into memory.



it will return the same value instantaneously.

  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: