Skip to content

docs(core): add missing javadoc for Expression#793

Open
bestbeforetoday wants to merge 1 commit intosubstrait-io:mainfrom
bestbeforetoday:expression-javadoc
Open

docs(core): add missing javadoc for Expression#793
bestbeforetoday wants to merge 1 commit intosubstrait-io:mainfrom
bestbeforetoday:expression-javadoc

Conversation

@bestbeforetoday
Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review April 1, 2026 17:28
@Value.Immutable
abstract class StrLiteral implements Literal {
/**
* Returns the string value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for consistency:

Suggested change
* Returns the string value.
* Returns the string value of this literal.

@Deprecated
abstract class TimestampLiteral implements Literal {
/**
* Returns the timestamp value in microseconds since epoch.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the timestamp value in microseconds since epoch.
* Returns the timestamp value of this literal in microseconds since epoch.

@Deprecated
abstract class TimeLiteral implements Literal {
/**
* Returns the time value in microseconds since midnight.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the time value in microseconds since midnight.
* Returns the time value of this literal in microseconds since midnight.

@Value.Immutable
abstract class PrecisionTimeLiteral implements Literal {
/**
* Returns the time value since midnight.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the time value since midnight.
* Returns the time value of this literal since midnight.

@Value.Immutable
abstract class DateLiteral implements Literal {
/**
* Returns the date value as days since epoch.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the date value as days since epoch.
* Returns the date value of this literal as days since epoch.

@Deprecated
abstract class TimestampTZLiteral implements Literal {
/**
* Returns the timestamp with timezone value in microseconds since epoch.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the timestamp with timezone value in microseconds since epoch.
* Returns the timestamp with timezone value of this literal in microseconds since epoch.

@Value.Immutable
abstract class PrecisionTimestampLiteral implements Literal {
/**
* Returns the timestamp value since epoch.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the timestamp value since epoch.
* Returns the timestamp value of this literal since epoch.

@Value.Immutable
abstract class PrecisionTimestampTZLiteral implements Literal {
/**
* Returns the timestamp with timezone value since epoch.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the timestamp with timezone value since epoch.
* Returns the timestamp with timezone value of this literal since epoch.

public abstract long subseconds();

/**
* Returns the precision of the subseconds component.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the precision of the subseconds component.
* Returns the precision of the subseconds component of this interval.

public abstract long subseconds();

/**
* Returns the precision of the subseconds component.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the precision of the subseconds component.
* Returns the precision of the subseconds component of this interval.

@Value.Immutable
abstract class UUIDLiteral implements Literal {
/**
* Returns the UUID value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the UUID value.
* Returns the UUID value of this literal.

@Value.Immutable
abstract class FixedCharLiteral implements Literal {
/**
* Returns the fixed-length character string value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the fixed-length character string value.
* Returns the fixed-length character string value of this literal.

@Value.Immutable
abstract class VarCharLiteral implements Literal {
/**
* Returns the variable-length character string value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the variable-length character string value.
* Returns the variable-length character string value of this literal.

public abstract String value();

/**
* Returns the maximum length of the string.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the maximum length of the string.
* Returns the maximum length of the string value of this literal.

@Value.Immutable
abstract class FixedBinaryLiteral implements Literal {
/**
* Returns the fixed-length binary value.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the fixed-length binary value.
* Returns the fixed-length binary value of this literal.

@Value.Immutable
abstract class DecimalLiteral implements Literal {
/**
* Returns the decimal value as a ByteString.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the decimal value as a ByteString.
* Returns the decimal value as a ByteString of this literal.

@Value.Immutable
abstract class MapLiteral implements Literal {
/**
* Returns the map of key-value pairs.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the map of key-value pairs.
* Returns the map of key-value pairs of this literal.

public abstract ByteString value();

/**
* Returns the precision of this decimal.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the precision of this decimal.
* Returns the precision of this decimal literal.

public abstract int precision();

/**
* Returns the scale of this decimal.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the scale of this decimal.
* Returns the scale of this decimal literal.

@Value.Immutable
abstract class EmptyMapLiteral implements Literal {
/**
* Returns the type of keys in this empty map.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the type of keys in this empty map.
* Returns the type of keys in this empty map literal.

public abstract Type keyType();

/**
* Returns the type of values in this empty map.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the type of values in this empty map.
* Returns the type of values in this empty map literal.

@Value.Immutable
abstract class ListLiteral implements Literal {
/**
* Returns the list of literal values.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the list of literal values.
* Returns the list of literal values of this list literal.

@Value.Immutable
abstract class EmptyListLiteral implements Literal {
/**
* Returns the type of elements in this empty list.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the type of elements in this empty list.
* Returns the type of elements in this empty list literal.

@Value.Immutable
abstract class StructLiteral implements Literal {
/**
* Returns the list of field literals in this struct.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the list of field literals in this struct.
* Returns the list of field literals in this struct literal.

*/
interface UserDefinedLiteral extends Literal {
/**
* Returns the URN (Uniform Resource Name) identifying the user-defined type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the URN (Uniform Resource Name) identifying the user-defined type.
* Returns the URN (Uniform Resource Name) identifying the user-defined type of this literal.

String urn();

/**
* Returns the name of the user-defined type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the name of the user-defined type.
* Returns the name of the user-defined type of this literal.

String name();

/**
* Returns the list of type parameters for this user-defined type.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the list of type parameters for this user-defined type.
* Returns the list of type parameters for this user-defined type literal.

public abstract List<io.substrait.type.Type.Parameter> typeParameters();

/**
* Returns the value encoded as a protobuf Any.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the value encoded as a protobuf Any.
* Returns the value of this literal encoded as a protobuf Any.

public abstract List<io.substrait.type.Type.Parameter> typeParameters();

/**
* Returns the list of field literals in this user-defined struct.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Returns the list of field literals in this user-defined struct.
* Returns the list of field literals in this user-defined struct literal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants