presto-connector/src/main/java/com/facebook/presto/maxcompute/utils/SimpleDataAccessor.java [25:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class SimpleDataAccessor
        extends ArrowVectorAccessor
{

    private final Collection data;

    public SimpleDataAccessor(Collection data)
    {
        super(new BitVector("ignore", new RootAllocator(0L)));
        this.data = data;
    }

    @Override
    public boolean isNullAt(int rowId)
    {
        if (data instanceof List) {
            return ((List) data).get(rowId) == null;
        }
        else if (data instanceof SimpleStruct) {
            return ((SimpleStruct) data).getFieldValue(rowId) == null;
        }
        else {
            return false;
        }
    }

    public Object get(int rowId)
    {
        if (data instanceof List) {
            return ((List) data).get(rowId);
        }
        else {
            return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



trino-connector/src/main/java/io/trino/plugin/maxcompute/utils/SimpleDataAccessor.java [25:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
public class SimpleDataAccessor
        extends ArrowVectorAccessor
{

    private final Collection data;

    public SimpleDataAccessor(Collection data)
    {
        super(new BitVector("ignore", new RootAllocator(0L)));
        this.data = data;
    }

    @Override
    public boolean isNullAt(int rowId)
    {
        if (data instanceof List) {
            return ((List) data).get(rowId) == null;
        }
        else if (data instanceof SimpleStruct) {
            return ((SimpleStruct) data).getFieldValue(rowId) == null;
        }
        else {
            return false;
        }
    }

    public Object get(int rowId)
    {
        if (data instanceof List) {
            return ((List) data).get(rowId);
        }
        else {
            return null;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



