/*
 * Copyright (C) 2016-2022 ActionTech.
 * License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher.
 */

package com.actiontech.dble.net.mysql;

import com.actiontech.dble.net.service.AbstractService;
import com.actiontech.dble.net.service.ResultFlag;

import java.nio.ByteBuffer;

/**
 * Created by szf on 2020/7/8.
 */
public class EOFRowPacket extends EOFPacket {


    public void write(ByteBuffer buffer, AbstractService service) {
        service.writeWithBuffer(this, buffer);
    }

    @Override
    public boolean isEndOfQuery() {
        return true;
    }

    @Override
    public ResultFlag getResultFlag() {
        return ResultFlag.EOF_ROW;
    }
}
