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

tech.ytsaurus.client.TableAttachmentYsonReader Maven / Gradle / Ivy

package tech.ytsaurus.client;

import java.io.ByteArrayInputStream;
import java.nio.ByteBuffer;
import java.util.List;

import tech.ytsaurus.ysontree.YTreeBinarySerializer;
import tech.ytsaurus.ysontree.YTreeNode;

class TableAttachmentYsonReader extends TableAttachmentRowsetReader {
    @Override
    protected List parseMergedRow(ByteBuffer bb, int size) {
        byte[] data = new byte[size];
        bb.get(data);
        ByteArrayInputStream input = new ByteArrayInputStream(data);

        return YTreeBinarySerializer.deserializeAll(input);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy