All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.dws.client.model.ColumnKey Maven / Gradle / Ivy

package com.huaweicloud.dws.client.model;

import lombok.AllArgsConstructor;

import java.io.Serializable;
import java.util.BitSet;
import java.util.Objects;

/**
 * @ProjectName: dws-connector
 * @ClassName: Key
 * @Description:
 * @Date: 2023/2/6 22:11
 * @Version: 1.0
 */
@AllArgsConstructor
public class ColumnKey implements Serializable {

    /**
     * 记录当前表操作的列宽
     */
    private BitSet columnBit;

    /**
     * 记录当前表操作的忽略列
     */
    private BitSet ignoreUpdateBit;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ColumnKey columnKey = (ColumnKey) o;
        return Objects.equals(columnBit, columnKey.columnBit)
                && Objects.equals(ignoreUpdateBit, columnKey.ignoreUpdateBit);
    }

    @Override
    public int hashCode() {
        return Objects.hash(columnBit, ignoreUpdateBit);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy