本文整理了Java中ucar.ma2.Index.isFastIterator()
方法的一些代码示例,展示了Index.isFastIterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Index.isFastIterator()
方法的具体详情如下:
包路径:ucar.ma2.Index
类名称:Index
方法名:isFastIterator
暂无
代码示例来源:origin: edu.ucar/netcdf
/**
* This gets the equivalent java array of the wanted type, in correct order.
* It avoids copying if possible.
*
* @param wantType returned object will be an array of this type. This must be convertible to it.
* @return java array of type want
*/
public Object get1DJavaArray(Class wantType) {
if (wantType == getElementType()) {
if (indexCalc.isFastIterator()) return getStorage(); // already in order
else return copyTo1DJavaArray(); // gotta copy
}
// gotta convert to new type
Array newA = factory(wantType, getShape());
MAMath.copy(newA, this);
return newA.getStorage();
}
代码示例来源:origin: edu.ucar/cdm
/**
* This gets the equivalent java array of the wanted type, in correct order.
* It avoids copying if possible.
*
* @param wantType returned object will be an array of this type. This must be convertible to it.
* @return java array of type want
*/
public Object get1DJavaArray(Class wantType) {
if (wantType == getElementType()) {
if (indexCalc.isFastIterator())
return getStorage(); // already in order
else return copyTo1DJavaArray(); // gotta copy
}
// gotta convert to new type
Array newA = factory(wantType, getShape());
MAMath.copy(newA, this);
return newA.getStorage();
}
代码示例来源:origin: Unidata/thredds
/**
* This gets the equivalent java array of the wanted type, in correct order.
* It avoids copying if possible.
*
* @param wantType returned object will be an array of this type. This must be convertible to it.
* @return java array of type want
*/
public Object get1DJavaArray(DataType wantType) {
if (wantType == getDataType()) {
if (indexCalc.isFastIterator())
return getStorage(); // already in order
else return copyTo1DJavaArray(); // gotta copy
}
// gotta convert to new type
Array newA = factory(wantType, getShape());
MAMath.copy(newA, this);
return newA.getStorage();
}
内容来源于网络,如有侵权,请联系作者删除!