示例#1
0
 public BigRow(bool b1, sbyte b2, short s1, int i1, long l1, float f1,
        double d1,
        byte[] b3, string s2, MiddleStruct m1,
        List<InnerStruct> l2, Dictionary<string, InnerStruct> m2)
 {
     this.boolean1 = b1;
     this.byte1 = b2;
     this.short1 = s1;
     this.int1 = i1;
     this.long1 = l1;
     this.float1 = f1;
     this.double1 = d1;
     this.bytes1 = b3;
     this.string1 = s2;
     this.middle = m1;
     this.list = l2;
     this.map = m2;
 }
示例#2
0
 public BigRow(bool b1, sbyte b2, short s1, int i1, long l1, float f1,
               double d1,
               byte[] b3, string s2, MiddleStruct m1,
               List <InnerStruct> l2, Dictionary <string, InnerStruct> m2)
 {
     this.boolean1 = b1;
     this.byte1    = b2;
     this.short1   = s1;
     this.int1     = i1;
     this.long1    = l1;
     this.float1   = f1;
     this.double1  = d1;
     this.bytes1   = b3;
     this.string1  = s2;
     this.middle   = m1;
     this.list     = l2;
     this.map      = m2;
 }
 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 setBigRow(VectorizedRowBatch batch, int rowId,
                               bool b1, byte b2, short s1,
                               int i1, long l1, float f1,
                               double d1, byte[] b3, string s2,
                               MiddleStruct m1, List<InnerStruct> l2,
                               Dictionary<string, InnerStruct> m2)
 {
     ((LongColumnVector)batch.cols[0]).vector[rowId] = b1 ? 1 : 0;
     ((LongColumnVector)batch.cols[1]).vector[rowId] = b2;
     ((LongColumnVector)batch.cols[2]).vector[rowId] = s1;
     ((LongColumnVector)batch.cols[3]).vector[rowId] = i1;
     ((LongColumnVector)batch.cols[4]).vector[rowId] = l1;
     ((DoubleColumnVector)batch.cols[5]).vector[rowId] = f1;
     ((DoubleColumnVector)batch.cols[6]).vector[rowId] = d1;
     if (b3 != null)
     {
         ((BytesColumnVector)batch.cols[7]).setVal(rowId, b3, 0, b3.Length);
     }
     else
     {
         batch.cols[7].isNull[rowId] = true;
         batch.cols[7].noNulls = false;
     }
     if (s2 != null)
     {
         ((BytesColumnVector)batch.cols[8]).setVal(rowId, s2.getBytes());
     }
     else
     {
         batch.cols[8].isNull[rowId] = true;
         batch.cols[8].noNulls = false;
     }
     setMiddleStruct((StructColumnVector)batch.cols[9], rowId, m1);
     setInnerList((ListColumnVector)batch.cols[10], rowId, l2);
     setInnerMap((MapColumnVector)batch.cols[11], rowId, m2);
 }