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

io.substrait.relation.Fetch 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.relation;

import io.substrait.type.Type;
import java.util.OptionalLong;
import org.immutables.value.Value;

@Value.Immutable
public abstract class Fetch extends SingleInputRel implements HasExtension {
  static final org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Fetch.class);

  public abstract long getOffset();

  public abstract OptionalLong getCount();

  @Override
  protected Type.Struct deriveRecordType() {
    return getInput().getRecordType();
  }

  @Override
  public  O accept(RelVisitor visitor) throws E {
    return visitor.visit(this);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy