com.sap.cds.adapter.odata.v4.query.apply.LimitConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cds-adapter-odata-v4 Show documentation
Show all versions of cds-adapter-odata-v4 Show documentation
OData V4 adapter for CDS Services Java
/**************************************************************************
* (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