function requestElements(oCache, iStart, iEnd, sGroupId) {
		var aElements = oCache.aElements,
			iExpectedLength = iEnd - iStart,
			oPromise,
			sResourcePath = oCache.sResourcePath + "$skip=" + iStart + "&$top=" + iExpectedLength;

		oPromise = oCache.oRequestor.request("GET", sResourcePath, sGroupId)
			.then(function (oResult) {
				var i, iResultLength = oResult.value.length, oError;

				if (aElements !== oCache.aElements) {
					oError = new Error("Refresh canceled processing of pending request: "
						+ oCache.oRequestor.getServiceUrl() + sResourcePath);
					oError.canceled = true;
					throw oError;
				}
				oCache.sContext = oResult["@odata.context"];
				if (iResultLength < iExpectedLength) {
					oCache.iMaxElements = iStart + iResultLength;
					oCache.aElements.splice(oCache.iMaxElements, iExpectedLength - iResultLength);
				}
				for (i = 0; i < iResultLength; i++) {
					oCache.aElements[iStart + i] = oResult.value[i];
				}
			})["catch"](function (oError) {
				if (aElements === oCache.aElements) {
					fill(oCache.aElements, undefined, iStart, iEnd);
				}
				throw oError;
			});

		fill(oCache.aElements, oPromise, iStart, iEnd);
	}
/**
	 * Requests the elements in the given range and places them into the aElements list. While the
	 * request is running, all indexes in this range contain the Promise.
	 * A refresh cancels processing of all pending requests by throwing an error that has a
	 * property <code>canceled</code> which is set to <code>true</code>.
	 *
	 * @param {sap.ui.model.odata.v4.lib._CollectionCache} oCache
	 *   The cache
	 * @param {int} iStart
	 *   The index of the first element to request ($skip)
	 * @param {int} iEnd
	 *   The position of the last element to request ($skip + $top)
	 * @param {string} sGroupId
	 *   The batch group ID
	 */
Requests the elements in the given range and places them into the aElements list. While the
request is running, all indexes in this range contain the Promise.
A refresh cancels processing of all pending requests by throwing an error that has a
property canceled which is set to true.

@param {sap.ui.model.odata.v4.lib._CollectionCache} oCache
The cache
@param {int} iStart
The index of the first element to request ($skip)
@param {int} iEnd
The position of the last element to request ($skip + $top)
@param {string} sGroupId
The batch group ID
Requests the elements in the given range and places them into the aElements list . While the request is running all indexes in this range contain the Promise . A refresh cancels processing of all pending requests by throwing an error that has a property canceled which is set to true . @param { sap . ui . model . odata . v4 . lib . _CollectionCache } oCache The cache @param { int } iStart The index of the first element to request ( $skip ) @param { int } iEnd The position of the last element to request ( $skip + $top ) @param { string } sGroupId The batch group ID
function requestElements(oCache, iStart, iEnd, sGroupId) {
		var aElements = oCache.aElements,
			iExpectedLength = iEnd - iStart,
			oPromise,
			sResourcePath = oCache.sResourcePath + "$skip=" + iStart + "&$top=" + iExpectedLength;
		oPromise = oCache.oRequestor.request("GET", sResourcePath, sGroupId)
			.then(function (oResult) {
				var i, iResultLength = oResult.value.length, oError;
				if (aElements !== oCache.aElements) {
					oError = new Error("Refresh canceled processing of pending request: "
						+ oCache.oRequestor.getServiceUrl() + sResourcePath);
					oError.canceled = true;
					throw oError;
				}
				oCache.sContext = oResult["@odata.context"];
				if (iResultLength < iExpectedLength) {
					oCache.iMaxElements = iStart + iResultLength;
					oCache.aElements.splice(oCache.iMaxElements, iExpectedLength - iResultLength);
				}
				for (i = 0; i < iResultLength; i++) {
					oCache.aElements[iStart + i] = oResult.value[i];
				}
			})["catch"](function (oError) {
				if (aElements === oCache.aElements) {
					fill(oCache.aElements, undefined, iStart, iEnd);
				}
				throw oError;
			});
		fill(oCache.aElements, oPromise, iStart, iEnd);
	}
function requestElements ( oCache , iStart , iEnd , sGroupId ) { var aElements = oCache . aElements , iExpectedLength = iEnd - iStart , oPromise , sResourcePath = oCache . sResourcePath + "$skip=" + iStart + "&$top=" + iExpectedLength ; oPromise = oCache . oRequestor . request ( "GET" , sResourcePath , sGroupId ) . then ( function ( oResult ) { var i , iResultLength = oResult . value . length , oError ; if ( aElements !== oCache . aElements ) { oError = new Error ( "Refresh canceled processing of pending request: " + oCache . oRequestor . getServiceUrl ( ) + sResourcePath ) ; oError . canceled = true ; throw oError ; } oCache . sContext = oResult [ "@odata.context" ] ; if ( iResultLength < iExpectedLength ) { oCache . iMaxElements = iStart + iResultLength ; oCache . aElements . splice ( oCache . iMaxElements , iExpectedLength - iResultLength ) ; } for ( i = 0 ; i < iResultLength ; i ++ ) { oCache . aElements [ iStart + i ] = oResult . value [ i ] ; } } ) [ "catch" ] ( function ( oError ) { if ( aElements === oCache . aElements ) { fill ( oCache . aElements , undefined , iStart , iEnd ) ; } throw oError ; } ) ; fill ( oCache . aElements , oPromise , iStart , iEnd ) ; }
Requests the elements in the given range and places them into the aElements list.
Requests the elements in the given range and places them into the aElements list .