Package io.substrait.relation.files
Class ImmutableFileFormat.Extension
java.lang.Object
io.substrait.relation.files.FileFormat.Extension
io.substrait.relation.files.ImmutableFileFormat.Extension
- All Implemented Interfaces:
FileFormat
- Enclosing class:
- ImmutableFileFormat
Immutable implementation of
FileFormat.Extension.
Use the builder to create immutable instances:
ImmutableFileFormat.Extension.builder().
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface io.substrait.relation.files.FileFormat
FileFormat.ArrowReadOptions, FileFormat.DelimiterSeparatedTextReadOptions, FileFormat.DwrfReadOptions, FileFormat.Extension, FileFormat.OrcReadOptions, FileFormat.ParquetReadOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forExtension.copyOf(FileFormat.Extension instance) Creates an immutable copy of aFileFormat.Extensionvalue.booleanThis instance is equal to all instances ofExtensionthat have equal attribute values.com.google.protobuf.AnyinthashCode()Computes a hash code from attributes:extension.toString()Prints the immutable valueExtensionwith attribute values.withExtension(com.google.protobuf.Any value) Copy the current immutable object by setting a value for theextensionattribute.
-
Method Details
-
getExtension
public com.google.protobuf.Any getExtension()- Specified by:
getExtensionin classFileFormat.Extension- Returns:
- The value of the
extensionattribute
-
withExtension
Copy the current immutable object by setting a value for theextensionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for extension- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:extension. -
toString
Prints the immutable valueExtensionwith attribute values. -
copyOf
Creates an immutable copy of aFileFormat.Extensionvalue. 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 Extension instance
-
builder
Creates a builder forExtension.ImmutableFileFormat.Extension.builder() .extension(com.google.protobuf.Any) // requiredextension.build();- Returns:
- A new Extension builder
-