All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cds.adapter.odata.v4.query.apply.LimitConverter Maven / Gradle / Ivy

There is a newer version: 3.6.0
Show newest version
/**************************************************************************
 * (C) 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
 **************************************************************************/
package com.sap.cds.adapter.odata.v4.query.apply;

import org.apache.olingo.server.api.uri.queryoption.apply.Skip;
import org.apache.olingo.server.api.uri.queryoption.apply.Top;

import com.sap.cds.ql.cqn.transformation.CqnTransformation;
import com.sap.cds.ql.impl.transformations.SkipTrafo;
import com.sap.cds.ql.impl.transformations.TopTrafo;

public class LimitConverter {

	private LimitConverter() {
		// empty
	}

	public static CqnTransformation skip(Skip odataSkip) {
		return SkipTrafo.skip(odataSkip.getSkipOption().getValue());
	}

	public static CqnTransformation top(Top odataTop) {
		return TopTrafo.top(odataTop.getTopOption().getValue());
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy