private static void setMiddleStruct(StructColumnVector middle, int rowId, MiddleStruct value) { if (value != null) { setInnerList((ListColumnVector)middle.fields[0], rowId, value.list); } else { middle.isNull[rowId] = true; middle.noNulls = false; } }
private static void writeFields( StructColumnVector vector, TreeWriter[] childrenWriters, int offset, int length) { for (int field = 0; field < childrenWriters.Length; ++field) { childrenWriters[field].writeBatch(vector.fields[field], offset, length); } }
private static void setInner(StructColumnVector inner, int rowId, int i, string value) { ((LongColumnVector)inner.fields[0]).vector[rowId] = i; if (value != null) { ((BytesColumnVector)inner.fields[1]).setVal(rowId, value.getBytes()); } else { inner.fields[1].isNull[rowId] = true; inner.fields[1].noNulls = false; } }