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

com.datastrato.gravitino.rel.expressions.literals.Literal Maven / Gradle / Ivy

Go to download

Gravitino is a high-performance, geo-distributed and federated metadata lake.

The newest version!
/*
 * Copyright 2024 Datastrato Pvt Ltd.
 * This software is licensed under the Apache License version 2.
 */
package com.datastrato.gravitino.rel.expressions.literals;

import com.datastrato.gravitino.annotation.Evolving;
import com.datastrato.gravitino.rel.expressions.Expression;
import com.datastrato.gravitino.rel.types.Type;

/**
 * Represents a constant literal value in the public expression API.
 *
 * @param  the JVM type of value held by the literal
 */
@Evolving
public interface Literal extends Expression {

  /** @return The literal value. */
  T value();

  /** @return The data type of the literal. */
  Type dataType();

  @Override
  default Expression[] children() {
    return EMPTY_EXPRESSION;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy