io.substrait.extension.AdvancedExtension Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
Create a well-defined, cross-language specification for data compute operations
package io.substrait.extension;
import io.substrait.relation.Extension;
import java.util.List;
import java.util.Optional;
import org.immutables.value.Value;
@Value.Immutable
public abstract class AdvancedExtension {
public abstract List getOptimizations();
public abstract Optional getEnhancement();
public io.substrait.proto.AdvancedExtension toProto() {
var builder = io.substrait.proto.AdvancedExtension.newBuilder();
getEnhancement().ifPresent(e -> builder.setEnhancement(e.toProto()));
getOptimizations().forEach(e -> builder.addOptimization(e.toProto()));
return builder.build();
}
public static ImmutableAdvancedExtension.Builder builder() {
return ImmutableAdvancedExtension.builder();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy