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

tech.ytsaurus.client.rows.UnversionedRowDeserializer Maven / Gradle / Ivy

The newest version!
package tech.ytsaurus.client.rows;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import javax.annotation.Nonnull;

public class UnversionedRowDeserializer
        extends UnversionedValueDeserializer
        implements WireRowDeserializer {
    private List values = Collections.emptyList();

    @Override
    @Nonnull
    public WireValueDeserializer onNewRow(int columnCount) {
        this.values = new ArrayList<>(columnCount);
        return this;
    }

    @Override
    @Nonnull
    public UnversionedRow onCompleteRow() {
        return new UnversionedRow(this.values);
    }

    @Override
    public UnversionedRow onNullRow() {
        return null;
    }

    @Override
    public UnversionedValue build() {
        final UnversionedValue value = super.build();
        this.values.add(value);
        return value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy