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

io.substrait.hint.Hint Maven / Gradle / Ivy

Go to download

Create a well-defined, cross-language specification for data compute operations

There is a newer version: 0.46.1
Show newest version
package io.substrait.hint;

import io.substrait.proto.RelCommon;
import java.util.List;
import java.util.Optional;
import org.immutables.value.Value;

@Value.Immutable
public abstract class Hint {
  public abstract Optional getAlias();

  public abstract List getOutputNames();

  public RelCommon.Hint toProto() {
    var builder = RelCommon.Hint.newBuilder().addAllOutputNames(getOutputNames());
    getAlias().ifPresent(builder::setAlias);
    return builder.build();
  }

  public static ImmutableHint.Builder builder() {
    return ImmutableHint.builder();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy