Package io.substrait.relation
Class ImmutableVirtualTableScan
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.ZeroInputRel
io.substrait.relation.AbstractReadRel
io.substrait.relation.VirtualTableScan
io.substrait.relation.ImmutableVirtualTableScan
- All Implemented Interfaces:
HasExtension,Rel
Immutable implementation of
VirtualTableScan.
Use the builder to create immutable instances:
ImmutableVirtualTableScan.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableVirtualTableScan. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableVirtualTableScan.static ImmutableVirtualTableScancopyOf(VirtualTableScan instance) Creates an immutable copy of aVirtualTableScanvalue.booleanThis instance is equal to all instances ofImmutableVirtualTableScanthat have equal attribute values.getHint()getRemap()getRows()inthashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,initialSchema,filter,bestEffortFilter,rows.toString()Prints the immutable valueVirtualTableScanwith attribute values.withBestEffortFilter(Expression value) Copy the current immutable object by setting a present value for the optionalbestEffortFilterattribute.withBestEffortFilter(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thebestEffortFilterattribute.Copy the current immutable object by setting a present value for the optionalcommonExtensionattribute.withCommonExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for thecommonExtensionattribute.withExtension(AdvancedExtension value) Copy the current immutable object by setting a present value for the optionalextensionattribute.withExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for theextensionattribute.withFilter(Expression value) Copy the current immutable object by setting a present value for the optionalfilterattribute.withFilter(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thefilterattribute.Copy the current immutable object by setting a present value for the optionalhintattribute.Copy the current immutable object by setting an optional value for thehintattribute.withInitialSchema(NamedStruct value) Copy the current immutable object by setting a value for theinitialSchemaattribute.Copy the current immutable object by setting a present value for the optionalremapattribute.Copy the current immutable object by setting an optional value for theremapattribute.withRows(Expression.NestedStruct... elements) Copy the current immutable object with elements that replace the content ofrows.withRows(Iterable<? extends Expression.NestedStruct> elements) Copy the current immutable object with elements that replace the content ofrows.Methods inherited from class io.substrait.relation.VirtualTableScan
accept, checkMethods inherited from class io.substrait.relation.AbstractReadRel
deriveRecordTypeMethods inherited from class io.substrait.relation.ZeroInputRel
getInputsMethods inherited from class io.substrait.relation.AbstractRel
getRecordType
-
Method Details
-
getExtension
- Returns:
- the
AdvancedExtensionassociated directly with the class
-
getRemap
- Returns:
- The value of the
remapattribute
-
getCommonExtension
- Returns:
- the
AdvancedExtensionassociated with aRelCommonmessage, if present
-
getHint
- Returns:
- The value of the
hintattribute
-
getInitialSchema
- Specified by:
getInitialSchemain classAbstractReadRel- Returns:
- The value of the
initialSchemaattribute
-
getFilter
- Specified by:
getFilterin classAbstractReadRel- Returns:
- The value of the
filterattribute
-
getBestEffortFilter
- Specified by:
getBestEffortFilterin classAbstractReadRel- Returns:
- The value of the
bestEffortFilterattribute
-
getRows
- Specified by:
getRowsin classVirtualTableScan- Returns:
- The value of the
rowsattribute
-
withExtension
Copy the current immutable object by setting a present value for the optionalextensionattribute.- Parameters:
value- The value for extension- Returns:
- A modified copy or
thisif not changed
-
withExtension
public final ImmutableVirtualTableScan withExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for theextensionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for extension- Returns:
- A modified copy or
thisif not changed
-
withRemap
Copy the current immutable object by setting a present value for the optionalremapattribute.- Parameters:
value- The value for remap- Returns:
- A modified copy or
thisif not changed
-
withRemap
Copy the current immutable object by setting an optional value for theremapattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for remap- Returns:
- A modified copy or
thisif not changed
-
withCommonExtension
Copy the current immutable object by setting a present value for the optionalcommonExtensionattribute.- Parameters:
value- The value for commonExtension- Returns:
- A modified copy or
thisif not changed
-
withCommonExtension
public final ImmutableVirtualTableScan withCommonExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for thecommonExtensionattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for commonExtension- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting a present value for the optionalhintattribute.- Parameters:
value- The value for hint- Returns:
- A modified copy or
thisif not changed
-
withHint
Copy the current immutable object by setting an optional value for thehintattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for hint- Returns:
- A modified copy or
thisif not changed
-
withInitialSchema
Copy the current immutable object by setting a value for theinitialSchemaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for initialSchema- Returns:
- A modified copy or the
thisobject
-
withFilter
Copy the current immutable object by setting a present value for the optionalfilterattribute.- Parameters:
value- The value for filter- Returns:
- A modified copy or
thisif not changed
-
withFilter
Copy the current immutable object by setting an optional value for thefilterattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for filter- Returns:
- A modified copy or
thisif not changed
-
withBestEffortFilter
Copy the current immutable object by setting a present value for the optionalbestEffortFilterattribute.- Parameters:
value- The value for bestEffortFilter- Returns:
- A modified copy or
thisif not changed
-
withBestEffortFilter
public final ImmutableVirtualTableScan withBestEffortFilter(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thebestEffortFilterattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for bestEffortFilter- Returns:
- A modified copy or
thisif not changed
-
withRows
Copy the current immutable object with elements that replace the content ofrows.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRows
public final ImmutableVirtualTableScan withRows(Iterable<? extends Expression.NestedStruct> elements) Copy the current immutable object with elements that replace the content ofrows. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of rows elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableVirtualTableScanthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,initialSchema,filter,bestEffortFilter,rows. -
toString
Prints the immutable valueVirtualTableScanwith attribute values. -
copyOf
Creates an immutable copy of aVirtualTableScanvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable VirtualTableScan instance
-
builder
Creates a builder forImmutableVirtualTableScan.ImmutableVirtualTableScan.builder() .extension(Optional<io.substrait.extension.AdvancedExtension>) // optionalextension.remap(Optional<io.substrait.relation.Rel.Remap>) // optionalremap.commonExtension(Optional<io.substrait.extension.AdvancedExtension>) // optionalcommonExtension.hint(Optional<io.substrait.hint.Hint>) // optionalhint.initialSchema(io.substrait.type.NamedStruct) // requiredinitialSchema.filter(Optional<io.substrait.expression.Expression>) // optionalfilter.bestEffortFilter(Optional<io.substrait.expression.Expression>) // optionalbestEffortFilter.addRows|addAllRows(io.substrait.expression.Expression.NestedStruct) //rowselements .build();- Returns:
- A new ImmutableVirtualTableScan builder
-