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

com.sap.cds.ql.hana.CqnHierarchyGenerator Maven / Gradle / Ivy

There is a newer version: 3.8.0
Show newest version
/*******************************************************************
 * © 2024 SAP SE or an SAP affiliate company. All rights reserved. *
 *******************************************************************/
package com.sap.cds.ql.hana;

import java.util.List;
import java.util.Optional;

import com.google.common.annotations.Beta;
import com.sap.cds.ql.cqn.CqnPredicate;
import com.sap.cds.ql.cqn.CqnSortSpecification;

/**
 * A table function that generates a hierarchy based on recursive parent-child source data
 */
@Beta
public interface CqnHierarchyGenerator extends CqnHierarchy {
	
	/**
	 * A filter condition that identifies the root nodes of the hierarchy generated by this generator
	 * 
	 * @return a reference to the filter condition that identifies the root nodes
	 *         as a {@link CqnPredicate} wrapped in an {@link Optional}
	 */
	Optional startWhere();
	
	List orderBy();

	Integer depth();

	@Override
	default boolean isGenerator() {
		return true;
	}

	@Override
	default CqnHierarchyGenerator asGenerator() {
		return this;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy