if (startVal instanceof Int64Value && lengthVal instanceof Int64Value) {
long lstart = startVal.longValue();
if (lstart > Integer.MAX_VALUE) {
return EmptyIterator.getInstance();
}
long llength = lengthVal.longValue();
if (llength > Integer.MAX_VALUE) {
llength = Integer.MAX_VALUE;
}
if (llength < 1) {
return EmptyIterator.getInstance();