io.substrait.relation.ExtensionMulti 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.relation;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.immutables.value.Value;
@Value.Immutable
public abstract class ExtensionMulti extends AbstractRel {
public abstract Extension.MultiRelDetail getDetail();
@Override
public O accept(RelVisitor visitor) throws E {
return visitor.visit(this);
}
public static ImmutableExtensionMulti.Builder from(
Extension.MultiRelDetail detail, Rel... inputs) {
return from(detail, Arrays.stream(inputs).collect(Collectors.toList()));
}
public static ImmutableExtensionMulti.Builder from(
Extension.MultiRelDetail detail, List inputs) {
return ImmutableExtensionMulti.builder()
.addAllInputs(inputs)
.detail(detail)
.deriveRecordType(detail.deriveRecordType(inputs));
}
public static ImmutableExtensionMulti.Builder builder() {
return ImmutableExtensionMulti.builder();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy