Package io.substrait.proto
Class WriteRel
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.substrait.proto.WriteRel
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WriteRelOrBuilder,Serializable
public final class WriteRel
extends com.google.protobuf.GeneratedMessageV3
implements WriteRelOrBuilder
The operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be based on joining of multiple tables).Protobuf type
substrait.WriteRel- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe operator that modifies the content of a database (operates on 1 table at a time, but record-selection/source can be based on joining of multiple tables).static enumProtobuf enumsubstrait.WriteRel.CreateModestatic enumProtobuf enumsubstrait.WriteRel.OutputModestatic enumProtobuf enumsubstrait.WriteRel.WriteOpstatic enumNested 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 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 = 9;.substrait.extensions.AdvancedExtension advanced_extension = 9;.substrait.RelCommon common = 7;.substrait.RelCommon common = 7;Used with CTAS to determine what to do if the table already existsintUsed with CTAS to determine what to do if the table already existsstatic WriteRelstatic final com.google.protobuf.Descriptors.Descriptor.substrait.ExtensionObject extension_table = 2;.substrait.ExtensionObject extension_table = 2;getInput()The relation that determines the records to add/remove/modify the schema must match with table_schema.The relation that determines the records to add/remove/modify the schema must match with table_schema..substrait.NamedObjectWrite named_table = 1;.substrait.NamedObjectWrite named_table = 1;getOp()The type of operation to performintThe type of operation to performOutput mode determines what is the output of executing this relintOutput mode determines what is the output of executing this relcom.google.protobuf.Parser<WriteRel>intThe schema of the table (must align with Rel input (e.g., number of leaf fields must match))The schema of the table (must align with Rel input (e.g., number of leaf fields must match))boolean.substrait.extensions.AdvancedExtension advanced_extension = 9;boolean.substrait.RelCommon common = 7;boolean.substrait.ExtensionObject extension_table = 2;inthashCode()booleanhasInput()The relation that determines the records to add/remove/modify the schema must match with table_schema.boolean.substrait.NamedObjectWrite named_table = 1;booleanThe schema of the table (must align with Rel input (e.g., number of leaf fields must match))protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic WriteRel.Builderstatic WriteRel.BuildernewBuilder(WriteRel prototype) protected WriteRel.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static WriteRelparseDelimitedFrom(InputStream input) static WriteRelparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRelparseFrom(byte[] data) static WriteRelparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRelparseFrom(com.google.protobuf.ByteString data) static WriteRelparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRelparseFrom(com.google.protobuf.CodedInputStream input) static WriteRelparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRelparseFrom(InputStream input) static WriteRelparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static WriteRelparseFrom(ByteBuffer data) static WriteRelparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<WriteRel>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
-
NAMED_TABLE_FIELD_NUMBER
public static final int NAMED_TABLE_FIELD_NUMBER- See Also:
-
EXTENSION_TABLE_FIELD_NUMBER
public static final int EXTENSION_TABLE_FIELD_NUMBER- See Also:
-
TABLE_SCHEMA_FIELD_NUMBER
public static final int TABLE_SCHEMA_FIELD_NUMBER- See Also:
-
OP_FIELD_NUMBER
public static final int OP_FIELD_NUMBER- See Also:
-
INPUT_FIELD_NUMBER
public static final int INPUT_FIELD_NUMBER- See Also:
-
CREATE_MODE_FIELD_NUMBER
public static final int CREATE_MODE_FIELD_NUMBER- See Also:
-
OUTPUT_FIELD_NUMBER
public static final int OUTPUT_FIELD_NUMBER- See Also:
-
COMMON_FIELD_NUMBER
public static final int COMMON_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
-
getWriteTypeCase
- Specified by:
getWriteTypeCasein interfaceWriteRelOrBuilder
-
hasNamedTable
public boolean hasNamedTable().substrait.NamedObjectWrite named_table = 1;- Specified by:
hasNamedTablein interfaceWriteRelOrBuilder- Returns:
- Whether the namedTable field is set.
-
getNamedTable
.substrait.NamedObjectWrite named_table = 1;- Specified by:
getNamedTablein interfaceWriteRelOrBuilder- Returns:
- The namedTable.
-
getNamedTableOrBuilder
.substrait.NamedObjectWrite named_table = 1;- Specified by:
getNamedTableOrBuilderin interfaceWriteRelOrBuilder
-
hasExtensionTable
public boolean hasExtensionTable().substrait.ExtensionObject extension_table = 2;- Specified by:
hasExtensionTablein interfaceWriteRelOrBuilder- Returns:
- Whether the extensionTable field is set.
-
getExtensionTable
.substrait.ExtensionObject extension_table = 2;- Specified by:
getExtensionTablein interfaceWriteRelOrBuilder- Returns:
- The extensionTable.
-
getExtensionTableOrBuilder
.substrait.ExtensionObject extension_table = 2;- Specified by:
getExtensionTableOrBuilderin interfaceWriteRelOrBuilder
-
hasTableSchema
public boolean hasTableSchema()The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
.substrait.NamedStruct table_schema = 3;- Specified by:
hasTableSchemain interfaceWriteRelOrBuilder- Returns:
- Whether the tableSchema field is set.
-
getTableSchema
The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
.substrait.NamedStruct table_schema = 3;- Specified by:
getTableSchemain interfaceWriteRelOrBuilder- Returns:
- The tableSchema.
-
getTableSchemaOrBuilder
The schema of the table (must align with Rel input (e.g., number of leaf fields must match))
.substrait.NamedStruct table_schema = 3;- Specified by:
getTableSchemaOrBuilderin interfaceWriteRelOrBuilder
-
getOpValue
public int getOpValue()The type of operation to perform
.substrait.WriteRel.WriteOp op = 4;- Specified by:
getOpValuein interfaceWriteRelOrBuilder- Returns:
- The enum numeric value on the wire for op.
-
getOp
The type of operation to perform
.substrait.WriteRel.WriteOp op = 4;- Specified by:
getOpin interfaceWriteRelOrBuilder- Returns:
- The op.
-
hasInput
public boolean hasInput()The relation that determines the records to add/remove/modify the schema must match with table_schema. Default values must be explicitly stated in a ProjectRel at the top of the input. The match must also occur in case of DELETE to ensure multi-engine plans are unequivocal.
.substrait.Rel input = 5;- Specified by:
hasInputin interfaceWriteRelOrBuilder- Returns:
- Whether the input field is set.
-
getInput
The relation that determines the records to add/remove/modify the schema must match with table_schema. Default values must be explicitly stated in a ProjectRel at the top of the input. The match must also occur in case of DELETE to ensure multi-engine plans are unequivocal.
.substrait.Rel input = 5;- Specified by:
getInputin interfaceWriteRelOrBuilder- Returns:
- The input.
-
getInputOrBuilder
The relation that determines the records to add/remove/modify the schema must match with table_schema. Default values must be explicitly stated in a ProjectRel at the top of the input. The match must also occur in case of DELETE to ensure multi-engine plans are unequivocal.
.substrait.Rel input = 5;- Specified by:
getInputOrBuilderin interfaceWriteRelOrBuilder
-
getCreateModeValue
public int getCreateModeValue()Used with CTAS to determine what to do if the table already exists
.substrait.WriteRel.CreateMode create_mode = 8;- Specified by:
getCreateModeValuein interfaceWriteRelOrBuilder- Returns:
- The enum numeric value on the wire for createMode.
-
getCreateMode
Used with CTAS to determine what to do if the table already exists
.substrait.WriteRel.CreateMode create_mode = 8;- Specified by:
getCreateModein interfaceWriteRelOrBuilder- Returns:
- The createMode.
-
getOutputValue
public int getOutputValue()Output mode determines what is the output of executing this rel
.substrait.WriteRel.OutputMode output = 6;- Specified by:
getOutputValuein interfaceWriteRelOrBuilder- Returns:
- The enum numeric value on the wire for output.
-
getOutput
Output mode determines what is the output of executing this rel
.substrait.WriteRel.OutputMode output = 6;- Specified by:
getOutputin interfaceWriteRelOrBuilder- Returns:
- The output.
-
hasCommon
public boolean hasCommon().substrait.RelCommon common = 7;- Specified by:
hasCommonin interfaceWriteRelOrBuilder- Returns:
- Whether the common field is set.
-
getCommon
.substrait.RelCommon common = 7;- Specified by:
getCommonin interfaceWriteRelOrBuilder- Returns:
- The common.
-
getCommonOrBuilder
.substrait.RelCommon common = 7;- Specified by:
getCommonOrBuilderin interfaceWriteRelOrBuilder
-
hasAdvancedExtension
public boolean hasAdvancedExtension().substrait.extensions.AdvancedExtension advanced_extension = 9;- Specified by:
hasAdvancedExtensionin interfaceWriteRelOrBuilder- Returns:
- Whether the advancedExtension field is set.
-
getAdvancedExtension
.substrait.extensions.AdvancedExtension advanced_extension = 9;- Specified by:
getAdvancedExtensionin interfaceWriteRelOrBuilder- Returns:
- The advancedExtension.
-
getAdvancedExtensionOrBuilder
.substrait.extensions.AdvancedExtension advanced_extension = 9;- Specified by:
getAdvancedExtensionOrBuilderin interfaceWriteRelOrBuilder
-
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 WriteRel parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRel parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRel parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRel parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRel parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WriteRel parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WriteRel parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static WriteRel parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static WriteRel 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 WriteRel.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
-