Package io.substrait.relation
Class ImmutableNamedScan
java.lang.Object
io.substrait.relation.AbstractRel
io.substrait.relation.ZeroInputRel
io.substrait.relation.AbstractReadRel
io.substrait.relation.NamedScan
io.substrait.relation.ImmutableNamedScan
- All Implemented Interfaces:
HasExtension,Rel
Immutable implementation of
NamedScan.
Use the builder to create immutable instances:
ImmutableNamedScan.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableNamedScan.Builderbuilder()Creates a builder forImmutableNamedScan.static ImmutableNamedScanCreates an immutable copy of aNamedScanvalue.booleanThis instance is equal to all instances ofImmutableNamedScanthat have equal attribute values.getHint()getNames()getRemap()inthashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,initialSchema,filter,bestEffortFilter,names.toString()Prints the immutable valueNamedScanwith attribute values.final ImmutableNamedScanwithBestEffortFilter(Expression value) Copy the current immutable object by setting a present value for the optionalbestEffortFilterattribute.final ImmutableNamedScanwithBestEffortFilter(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thebestEffortFilterattribute.final ImmutableNamedScanCopy the current immutable object by setting a present value for the optionalcommonExtensionattribute.final ImmutableNamedScanwithCommonExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for thecommonExtensionattribute.final ImmutableNamedScanwithExtension(AdvancedExtension value) Copy the current immutable object by setting a present value for the optionalextensionattribute.final ImmutableNamedScanwithExtension(Optional<? extends AdvancedExtension> optional) Copy the current immutable object by setting an optional value for theextensionattribute.final ImmutableNamedScanwithFilter(Expression value) Copy the current immutable object by setting a present value for the optionalfilterattribute.final ImmutableNamedScanwithFilter(Optional<? extends Expression> optional) Copy the current immutable object by setting an optional value for thefilterattribute.final ImmutableNamedScanCopy the current immutable object by setting a present value for the optionalhintattribute.final ImmutableNamedScanCopy the current immutable object by setting an optional value for thehintattribute.final ImmutableNamedScanwithInitialSchema(NamedStruct value) Copy the current immutable object by setting a value for theinitialSchemaattribute.final ImmutableNamedScanCopy the current immutable object with elements that replace the content ofnames.final ImmutableNamedScanCopy the current immutable object with elements that replace the content ofnames.final ImmutableNamedScanCopy the current immutable object by setting a present value for the optionalremapattribute.final ImmutableNamedScanCopy the current immutable object by setting an optional value for theremapattribute.Methods 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
-
getNames
-
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
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
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
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
-
withNames
Copy the current immutable object with elements that replace the content ofnames.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withNames
Copy the current immutable object with elements that replace the content ofnames. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of names elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofImmutableNamedScanthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:extension,remap,commonExtension,hint,initialSchema,filter,bestEffortFilter,names. -
toString
Prints the immutable valueNamedScanwith attribute values. -
copyOf
Creates an immutable copy of aNamedScanvalue. 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 NamedScan instance
-
builder
Creates a builder forImmutableNamedScan.ImmutableNamedScan.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.addNames|addAllNames(String) //nameselements .build();- Returns:
- A new ImmutableNamedScan builder
-