Class MySQLCommandExecuteEngine
java.lang.Object
org.apache.shardingsphere.proxy.frontend.mysql.command.MySQLCommandExecuteEngine
- All Implemented Interfaces:
CommandExecuteEngine
Command execute engine for MySQL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommandExecutor(org.apache.shardingsphere.db.protocol.packet.CommandPacketType type, org.apache.shardingsphere.db.protocol.packet.CommandPacket packet, ConnectionSession connectionSession) getCommandPacket(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload, org.apache.shardingsphere.db.protocol.packet.CommandPacketType type, ConnectionSession connectionSession) getCommandPacketType(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload) org.apache.shardingsphere.db.protocol.packet.DatabasePacket<?>getErrorPacket(Exception cause) Optional<org.apache.shardingsphere.db.protocol.packet.DatabasePacket<?>>getOtherPacket(ConnectionSession connectionSession) voidwriteQueryData(io.netty.channel.ChannelHandlerContext context, BackendConnection backendConnection, QueryCommandExecutor queryCommandExecutor, int headerPackagesCount)
-
Constructor Details
-
MySQLCommandExecuteEngine
public MySQLCommandExecuteEngine()
-
-
Method Details
-
getCommandPacketType
public MySQLCommandPacketType getCommandPacketType(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload) - Specified by:
getCommandPacketTypein interfaceCommandExecuteEngine
-
getCommandPacket
public MySQLCommandPacket getCommandPacket(org.apache.shardingsphere.db.protocol.payload.PacketPayload payload, org.apache.shardingsphere.db.protocol.packet.CommandPacketType type, ConnectionSession connectionSession) - Specified by:
getCommandPacketin interfaceCommandExecuteEngine
-
getCommandExecutor
public CommandExecutor getCommandExecutor(org.apache.shardingsphere.db.protocol.packet.CommandPacketType type, org.apache.shardingsphere.db.protocol.packet.CommandPacket packet, ConnectionSession connectionSession) throws SQLException - Specified by:
getCommandExecutorin interfaceCommandExecuteEngine- Throws:
SQLException
-
getErrorPacket
public org.apache.shardingsphere.db.protocol.packet.DatabasePacket<?> getErrorPacket(Exception cause) - Specified by:
getErrorPacketin interfaceCommandExecuteEngine
-
getOtherPacket
public Optional<org.apache.shardingsphere.db.protocol.packet.DatabasePacket<?>> getOtherPacket(ConnectionSession connectionSession) - Specified by:
getOtherPacketin interfaceCommandExecuteEngine
-
writeQueryData
public void writeQueryData(io.netty.channel.ChannelHandlerContext context, BackendConnection backendConnection, QueryCommandExecutor queryCommandExecutor, int headerPackagesCount) throws SQLException - Specified by:
writeQueryDatain interfaceCommandExecuteEngine- Throws:
SQLException
-