Package io.substrait.proto
Class HashJoinRel
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.substrait.proto.HashJoinRel
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HashJoinRelOrBuilder,Serializable
public final class HashJoinRel
extends com.google.protobuf.GeneratedMessageV3
implements HashJoinRelOrBuilder
The hash equijoin operator will build a hash table out of one input (default `right`) based on a set of join keys. It will then probe that hash table for the other input (default `left`), finding matches. Two rows are a match if the comparison function returns true for all keysProtobuf type
substrait.HashJoinRel- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe hash equijoin operator will build a hash table out of one input (default `right`) based on a set of join keys.static enumProtobuf enumsubstrait.HashJoinRel.BuildInputstatic enumProtobuf enumsubstrait.HashJoinRel.JoinTypeNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionboolean.substrait.extensions.AdvancedExtension advanced_extension = 10;.substrait.extensions.AdvancedExtension advanced_extension = 10;Specifies which side of input to build the hash table for this hash join.intSpecifies which side of input to build the hash table for this hash join..substrait.RelCommon common = 1;.substrait.RelCommon common = 1;static HashJoinRelstatic final com.google.protobuf.Descriptors.DescriptorgetKeys(int index) One or more keys to join on.intOne or more keys to join on.One or more keys to join on.getKeysOrBuilder(int index) One or more keys to join on.List<? extends ComparisonJoinKeyOrBuilder>One or more keys to join on.getLeft().substrait.Rel left = 2;getLeftKeys(int index) Deprecated.intDeprecated.Deprecated.getLeftKeysOrBuilder(int index) Deprecated.List<? extends Expression.FieldReferenceOrBuilder>Deprecated..substrait.Rel left = 2;com.google.protobuf.Parser<HashJoinRel>.substrait.Expression post_join_filter = 6;.substrait.Expression post_join_filter = 6;getRight().substrait.Rel right = 3;getRightKeys(int index) Deprecated.intDeprecated.Deprecated.getRightKeysOrBuilder(int index) Deprecated.List<? extends Expression.FieldReferenceOrBuilder>Deprecated..substrait.Rel right = 3;intgetType().substrait.HashJoinRel.JoinType type = 7;int.substrait.HashJoinRel.JoinType type = 7;boolean.substrait.extensions.AdvancedExtension advanced_extension = 10;boolean.substrait.RelCommon common = 1;inthashCode()booleanhasLeft().substrait.Rel left = 2;boolean.substrait.Expression post_join_filter = 6;booleanhasRight().substrait.Rel right = 3;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic HashJoinRel.Builderstatic HashJoinRel.BuildernewBuilder(HashJoinRel prototype) protected HashJoinRel.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static HashJoinRelparseDelimitedFrom(InputStream input) static HashJoinRelparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HashJoinRelparseFrom(byte[] data) static HashJoinRelparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HashJoinRelparseFrom(com.google.protobuf.ByteString data) static HashJoinRelparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HashJoinRelparseFrom(com.google.protobuf.CodedInputStream input) static HashJoinRelparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HashJoinRelparseFrom(InputStream input) static HashJoinRelparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HashJoinRelparseFrom(ByteBuffer data) static HashJoinRelparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HashJoinRel>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
COMMON_FIELD_NUMBER
public static final int COMMON_FIELD_NUMBER- See Also:
-
LEFT_FIELD_NUMBER
public static final int LEFT_FIELD_NUMBER- See Also:
-
RIGHT_FIELD_NUMBER
public static final int RIGHT_FIELD_NUMBER- See Also:
-
LEFT_KEYS_FIELD_NUMBER
public static final int LEFT_KEYS_FIELD_NUMBER- See Also:
-
RIGHT_KEYS_FIELD_NUMBER
public static final int RIGHT_KEYS_FIELD_NUMBER- See Also:
-
KEYS_FIELD_NUMBER
public static final int KEYS_FIELD_NUMBER- See Also:
-
POST_JOIN_FILTER_FIELD_NUMBER
public static final int POST_JOIN_FILTER_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
BUILD_INPUT_FIELD_NUMBER
public static final int BUILD_INPUT_FIELD_NUMBER- See Also:
-
ADVANCED_EXTENSION_FIELD_NUMBER
public static final int ADVANCED_EXTENSION_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCommon
public boolean hasCommon().substrait.RelCommon common = 1;- Specified by:
hasCommonin interfaceHashJoinRelOrBuilder- Returns:
- Whether the common field is set.
-
getCommon
.substrait.RelCommon common = 1;- Specified by:
getCommonin interfaceHashJoinRelOrBuilder- Returns:
- The common.
-
getCommonOrBuilder
.substrait.RelCommon common = 1;- Specified by:
getCommonOrBuilderin interfaceHashJoinRelOrBuilder
-
hasLeft
public boolean hasLeft().substrait.Rel left = 2;- Specified by:
hasLeftin interfaceHashJoinRelOrBuilder- Returns:
- Whether the left field is set.
-
getLeft
.substrait.Rel left = 2;- Specified by:
getLeftin interfaceHashJoinRelOrBuilder- Returns:
- The left.
-
getLeftOrBuilder
.substrait.Rel left = 2;- Specified by:
getLeftOrBuilderin interfaceHashJoinRelOrBuilder
-
hasRight
public boolean hasRight().substrait.Rel right = 3;- Specified by:
hasRightin interfaceHashJoinRelOrBuilder- Returns:
- Whether the right field is set.
-
getRight
.substrait.Rel right = 3;- Specified by:
getRightin interfaceHashJoinRelOrBuilder- Returns:
- The right.
-
getRightOrBuilder
.substrait.Rel right = 3;- Specified by:
getRightOrBuilderin interfaceHashJoinRelOrBuilder
-
getLeftKeysList
Deprecated.These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ
repeated .substrait.Expression.FieldReference left_keys = 4 [deprecated = true];- Specified by:
getLeftKeysListin interfaceHashJoinRelOrBuilder
-
getLeftKeysOrBuilderList
Deprecated.These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ
repeated .substrait.Expression.FieldReference left_keys = 4 [deprecated = true];- Specified by:
getLeftKeysOrBuilderListin interfaceHashJoinRelOrBuilder
-
getLeftKeysCount
Deprecated.These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ
repeated .substrait.Expression.FieldReference left_keys = 4 [deprecated = true];- Specified by:
getLeftKeysCountin interfaceHashJoinRelOrBuilder
-
getLeftKeys
Deprecated.These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ
repeated .substrait.Expression.FieldReference left_keys = 4 [deprecated = true];- Specified by:
getLeftKeysin interfaceHashJoinRelOrBuilder
-
getLeftKeysOrBuilder
Deprecated.These fields are deprecated in favor of `keys`. If they are set then the two lists (left_keys and right_keys) must have the same length and the comparion function is considered to be SimpleEqualityType::EQ
repeated .substrait.Expression.FieldReference left_keys = 4 [deprecated = true];- Specified by:
getLeftKeysOrBuilderin interfaceHashJoinRelOrBuilder
-
getRightKeysList
Deprecated.repeated .substrait.Expression.FieldReference right_keys = 5 [deprecated = true];- Specified by:
getRightKeysListin interfaceHashJoinRelOrBuilder
-
getRightKeysOrBuilderList
Deprecated.repeated .substrait.Expression.FieldReference right_keys = 5 [deprecated = true];- Specified by:
getRightKeysOrBuilderListin interfaceHashJoinRelOrBuilder
-
getRightKeysCount
Deprecated.repeated .substrait.Expression.FieldReference right_keys = 5 [deprecated = true];- Specified by:
getRightKeysCountin interfaceHashJoinRelOrBuilder
-
getRightKeys
Deprecated.repeated .substrait.Expression.FieldReference right_keys = 5 [deprecated = true];- Specified by:
getRightKeysin interfaceHashJoinRelOrBuilder
-
getRightKeysOrBuilder
Deprecated.repeated .substrait.Expression.FieldReference right_keys = 5 [deprecated = true];- Specified by:
getRightKeysOrBuilderin interfaceHashJoinRelOrBuilder
-
getKeysList
One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). If a custom comparison function is used then it must be consistent with the hash function used for the keys. In other words, the hash function must return the same hash code when the comparison returns true. For example, if the comparison function is "equals ignoring case" then the hash function must return the same hash code for strings that differ only by case. Note: the hash function is not specified here. It is the responsibility of the consumer to find an appropriate hash function for a given comparsion function or to reject the plan if it cannot do so.
repeated .substrait.ComparisonJoinKey keys = 8;- Specified by:
getKeysListin interfaceHashJoinRelOrBuilder
-
getKeysOrBuilderList
One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). If a custom comparison function is used then it must be consistent with the hash function used for the keys. In other words, the hash function must return the same hash code when the comparison returns true. For example, if the comparison function is "equals ignoring case" then the hash function must return the same hash code for strings that differ only by case. Note: the hash function is not specified here. It is the responsibility of the consumer to find an appropriate hash function for a given comparsion function or to reject the plan if it cannot do so.
repeated .substrait.ComparisonJoinKey keys = 8;- Specified by:
getKeysOrBuilderListin interfaceHashJoinRelOrBuilder
-
getKeysCount
public int getKeysCount()One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). If a custom comparison function is used then it must be consistent with the hash function used for the keys. In other words, the hash function must return the same hash code when the comparison returns true. For example, if the comparison function is "equals ignoring case" then the hash function must return the same hash code for strings that differ only by case. Note: the hash function is not specified here. It is the responsibility of the consumer to find an appropriate hash function for a given comparsion function or to reject the plan if it cannot do so.
repeated .substrait.ComparisonJoinKey keys = 8;- Specified by:
getKeysCountin interfaceHashJoinRelOrBuilder
-
getKeys
One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). If a custom comparison function is used then it must be consistent with the hash function used for the keys. In other words, the hash function must return the same hash code when the comparison returns true. For example, if the comparison function is "equals ignoring case" then the hash function must return the same hash code for strings that differ only by case. Note: the hash function is not specified here. It is the responsibility of the consumer to find an appropriate hash function for a given comparsion function or to reject the plan if it cannot do so.
repeated .substrait.ComparisonJoinKey keys = 8;- Specified by:
getKeysin interfaceHashJoinRelOrBuilder
-
getKeysOrBuilder
One or more keys to join on. The relation is invalid if this is empty (unless the deprecated left_keys/right_keys fields are being used). If a custom comparison function is used then it must be consistent with the hash function used for the keys. In other words, the hash function must return the same hash code when the comparison returns true. For example, if the comparison function is "equals ignoring case" then the hash function must return the same hash code for strings that differ only by case. Note: the hash function is not specified here. It is the responsibility of the consumer to find an appropriate hash function for a given comparsion function or to reject the plan if it cannot do so.
repeated .substrait.ComparisonJoinKey keys = 8;- Specified by:
getKeysOrBuilderin interfaceHashJoinRelOrBuilder
-
hasPostJoinFilter
public boolean hasPostJoinFilter().substrait.Expression post_join_filter = 6;- Specified by:
hasPostJoinFilterin interfaceHashJoinRelOrBuilder- Returns:
- Whether the postJoinFilter field is set.
-
getPostJoinFilter
.substrait.Expression post_join_filter = 6;- Specified by:
getPostJoinFilterin interfaceHashJoinRelOrBuilder- Returns:
- The postJoinFilter.
-
getPostJoinFilterOrBuilder
.substrait.Expression post_join_filter = 6;- Specified by:
getPostJoinFilterOrBuilderin interfaceHashJoinRelOrBuilder
-
getTypeValue
public int getTypeValue().substrait.HashJoinRel.JoinType type = 7;- Specified by:
getTypeValuein interfaceHashJoinRelOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
getType
.substrait.HashJoinRel.JoinType type = 7;- Specified by:
getTypein interfaceHashJoinRelOrBuilder- Returns:
- The type.
-
getBuildInputValue
public int getBuildInputValue()Specifies which side of input to build the hash table for this hash join. Default is `BUILD_INPUT_RIGHT`.
.substrait.HashJoinRel.BuildInput build_input = 9;- Specified by:
getBuildInputValuein interfaceHashJoinRelOrBuilder- Returns:
- The enum numeric value on the wire for buildInput.
-
getBuildInput
Specifies which side of input to build the hash table for this hash join. Default is `BUILD_INPUT_RIGHT`.
.substrait.HashJoinRel.BuildInput build_input = 9;- Specified by:
getBuildInputin interfaceHashJoinRelOrBuilder- Returns:
- The buildInput.
-
hasAdvancedExtension
public boolean hasAdvancedExtension().substrait.extensions.AdvancedExtension advanced_extension = 10;- Specified by:
hasAdvancedExtensionin interfaceHashJoinRelOrBuilder- Returns:
- Whether the advancedExtension field is set.
-
getAdvancedExtension
.substrait.extensions.AdvancedExtension advanced_extension = 10;- Specified by:
getAdvancedExtensionin interfaceHashJoinRelOrBuilder- Returns:
- The advancedExtension.
-
getAdvancedExtensionOrBuilder
.substrait.extensions.AdvancedExtension advanced_extension = 10;- Specified by:
getAdvancedExtensionOrBuilderin interfaceHashJoinRelOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HashJoinRel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HashJoinRel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HashJoinRel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HashJoinRel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HashJoinRel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HashJoinRel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HashJoinRel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HashJoinRel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HashJoinRel parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HashJoinRel.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-