Search in sources :

Example 1 with FieldWriter

use of org.apache.drill.exec.vector.complex.writer.FieldWriter in project drill by apache.

the class PromotableWriter method setPosition.

@Override
public void setPosition(int index) {
    super.setPosition(index);
    FieldWriter w = getWriter();
    if (w == null) {
        position = index;
    } else {
        w.setPosition(index);
    }
}
Also used : FieldWriter(org.apache.drill.exec.vector.complex.writer.FieldWriter)

Example 2 with FieldWriter

use of org.apache.drill.exec.vector.complex.writer.FieldWriter in project drill by apache.

the class ListVector method copyFrom.

public void copyFrom(int inIndex, int outIndex, ListVector from) {
    FieldReader in = from.getReader();
    in.setPosition(inIndex);
    FieldWriter out = getWriter();
    out.setPosition(outIndex);
    ComplexCopier.copy(in, out);
}
Also used : FieldReader(org.apache.drill.exec.vector.complex.reader.FieldReader) FieldWriter(org.apache.drill.exec.vector.complex.writer.FieldWriter)

Aggregations

FieldWriter (org.apache.drill.exec.vector.complex.writer.FieldWriter)2 FieldReader (org.apache.drill.exec.vector.complex.reader.FieldReader)1