Package io.substrait.relation
Class ProtoRelConverter
java.lang.Object
io.substrait.relation.ProtoRelConverter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NonNull SimpleExtension.ExtensionCollectionprotected final @NonNull ExtensionLookupprotected final @NonNull ProtoExtensionConverterprotected final @NonNull ProtoTypeConverter -
Constructor Summary
ConstructorsConstructorDescriptionProtoRelConverter(@NonNull ExtensionLookup lookup) Constructor with customExtensionLookup.ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull ProtoExtensionConverter protoExtensionConverter) Constructor with customExtensionLookupandProtoExtensionConverter.ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull SimpleExtension.ExtensionCollection extensions) Constructor with customExtensionLookupandSimpleExtension.ExtensionCollection.ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull SimpleExtension.ExtensionCollection extensions, @NonNull ProtoExtensionConverter protoExtensionConverter) Constructor with customExtensionLookup,SimpleExtension.ExtensionCollectionandProtoExtensionConverter. -
Method Summary
Modifier and TypeMethodDescriptionprotected Extension.DdlExtensionObjectdetailFromDdlExtensionObject(com.google.protobuf.Any any) protected Extension.LeafRelDetaildetailFromExtensionLeafRel(com.google.protobuf.Any any) Override to provide a custom converter forExtensionLeafRel.getDetail()dataprotected Extension.MultiRelDetaildetailFromExtensionMultiRel(com.google.protobuf.Any any) Override to provide a custom converter forExtensionMultiRel.getDetail()dataprotected Extension.SingleRelDetaildetailFromExtensionSingleRel(com.google.protobuf.Any any) Override to provide a custom converter forExtensionSingleRel.getDetail()dataprotected Extension.ExtensionTableDetaildetailFromExtensionTable(com.google.protobuf.Any any) Override to provide a custom converter forReadRel.ExtensionTable.getDetail()dataprotected Extension.WriteExtensionObjectdetailFromWriteExtensionObject(com.google.protobuf.Any any) protected AggregatenewAggregate(AggregateRel rel) protected BroadcastExchangeprotected ConsistentPartitionWindowprotected Relprotected Relprotected AbstractExchangeRelnewExchange(ExchangeRel rel) protected AbstractExchangeRel.ExchangeTargetprotected Expandprotected ExtensionDdlnewExtensionDdl(DdlRel rel) protected ExtensionLeafprotected ExtensionMultiprotected ExtensionSingleprotected ExtensionTablenewExtensionTable(ReadRel rel) protected Relprotected Fetchprotected FileOrFilesprotected Filterprotected RelnewHashJoin(HashJoinRel rel) protected Joinprotected LocalFilesnewLocalFiles(ReadRel rel) protected RelnewMergeJoin(MergeJoinRel rel) protected MultiBucketExchangeprotected NamedDdlnewNamedDdl(DdlRel rel) protected NamedScannewNamedScan(ReadRel rel) protected NamedStructnewNamedStruct(NamedStruct namedStruct) protected NamedStructnewNamedStruct(ReadRel rel) protected RelnewNamedUpdate(UpdateRel rel) protected NamedWritenewNamedWrite(WriteRel rel) protected NestedLoopJoinprotected ProjectnewProject(ProjectRel rel) protected Relprotected RoundRobinExchangeprotected ScatterExchangeprotected Setprotected SingleBucketExchangeprotected Sortprotected Relprotected VirtualTableScannewVirtualTable(ReadRel rel) protected Relprotected Optional<AdvancedExtension>optionalAdvancedExtension(RelCommon relCommon) optionalHint(RelCommon relCommon) optionalRelmap(RelCommon relCommon) protected Expression.StructLiteraltableDefaults(Expression.Literal.Struct struct, NamedStruct tableSchema)
-
Field Details
-
lookup
-
extensions
-
protoTypeConverter
-
protoExtensionConverter
-
-
Constructor Details
-
ProtoRelConverter
Constructor with customExtensionLookup.- Parameters:
lookup- the customExtensionLookupto use, must not be null
-
ProtoRelConverter
public ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull SimpleExtension.ExtensionCollection extensions) Constructor with customExtensionLookupandSimpleExtension.ExtensionCollection.- Parameters:
lookup- customExtensionLookupto use, must not be nullextensions- customSimpleExtension.ExtensionCollectionto use, must not be null
-
ProtoRelConverter
public ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull ProtoExtensionConverter protoExtensionConverter) Constructor with customExtensionLookupandProtoExtensionConverter.- Parameters:
lookup- customExtensionLookupto use, must not be nullprotoExtensionConverter- customProtoExtensionConverterto use, must not be null
-
ProtoRelConverter
public ProtoRelConverter(@NonNull ExtensionLookup lookup, @NonNull SimpleExtension.ExtensionCollection extensions, @NonNull ProtoExtensionConverter protoExtensionConverter) Constructor with customExtensionLookup,SimpleExtension.ExtensionCollectionandProtoExtensionConverter.- Parameters:
lookup- customExtensionLookupto use, must not be nullextensions- customSimpleExtension.ExtensionCollectionto use, must not be nullprotoExtensionConverter- customProtoExtensionConverterto use, must not be null
-
-
Method Details
-
from
-
from
-
newRead
-
newWrite
-
newNamedWrite
-
newExtensionWrite
-
newDdl
-
newNamedDdl
-
newExtensionDdl
-
optionalViewDefinition
-
tableDefaults
protected Expression.StructLiteral tableDefaults(Expression.Literal.Struct struct, NamedStruct tableSchema) -
newUpdate
-
newNamedUpdate
-
newFilter
-
newNamedStruct
-
newNamedStruct
-
newExtensionLeaf
-
newExtensionSingle
-
newExtensionMulti
-
newNamedScan
-
newExtensionTable
-
newLocalFiles
-
newFileOrFiles
-
newVirtualTable
-
newFetch
-
newProject
-
newExpand
-
newAggregate
-
newSort
-
newJoin
-
newCross
-
newSet
-
newHashJoin
-
newMergeJoin
-
newNestedLoopJoin
-
newConsistentPartitionWindow
-
newExchange
-
newScatterExchange
-
newSingleBucketExchange
-
newMultiBucketExchange
-
newRoundRobinExchange
-
newBroadcastExchange
-
newExchangeTarget
-
optionalRelmap
-
optionalHint
-
optionalAdvancedExtension
-
detailFromExtensionLeafRel
Override to provide a custom converter forExtensionLeafRel.getDetail()data -
detailFromExtensionSingleRel
Override to provide a custom converter forExtensionSingleRel.getDetail()data -
detailFromExtensionMultiRel
Override to provide a custom converter forExtensionMultiRel.getDetail()data -
detailFromExtensionTable
Override to provide a custom converter forReadRel.ExtensionTable.getDetail()data -
detailFromWriteExtensionObject
protected Extension.WriteExtensionObject detailFromWriteExtensionObject(com.google.protobuf.Any any) -
detailFromDdlExtensionObject
-