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

com.clickhouse.data.format.tsv.ArrayByteFragment Maven / Gradle / Ivy

There is a newer version: 0.7.1-patch1
Show newest version
package com.clickhouse.data.format.tsv;

public final class ArrayByteFragment extends ByteFragment {

    private ArrayByteFragment(byte[] buf, int start, int len) {
        super(buf, start, len);
    }

    public static ArrayByteFragment wrap(ByteFragment fragment) {
        return new ArrayByteFragment(fragment.buf, fragment.start, fragment.len);
    }

    @Override
    public boolean isNull() {
        // NULL
        return len == 4 && buf[start] == 'N' && buf[start + 1] == 'U' && buf[start + 2] == 'L' && buf[start + 3] == 'L';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy