public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I32) { $xfer += $input->readI32($this->type); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->partitioning_exprs = array(); $_size0 = 0; $_etype3 = 0; $xfer += $input->readListBegin($_etype3, $_size0); for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; $elem5 = new \TExpr(); $xfer += $elem5->read($input); $this->partitioning_exprs[] = $elem5; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::I32) { $xfer += $input->readI32($this->node_id); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I32) { $xfer += $input->readI32($this->node_type); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I32) { $xfer += $input->readI32($this->num_children); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->limit); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::LST) { $this->row_tuples = array(); $_size77 = 0; $_etype80 = 0; $xfer += $input->readListBegin($_etype80, $_size77); for ($_i81 = 0; $_i81 < $_size77; ++$_i81) { $elem82 = null; $xfer += $input->readI32($elem82); $this->row_tuples[] = $elem82; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::LST) { $this->nullable_tuples = array(); $_size83 = 0; $_etype86 = 0; $xfer += $input->readListBegin($_etype86, $_size83); for ($_i87 = 0; $_i87 < $_size83; ++$_i87) { $elem88 = null; $xfer += $input->readBool($elem88); $this->nullable_tuples[] = $elem88; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::LST) { $this->conjuncts = array(); $_size89 = 0; $_etype92 = 0; $xfer += $input->readListBegin($_etype92, $_size89); for ($_i93 = 0; $_i93 < $_size89; ++$_i93) { $elem94 = null; $elem94 = new \TExpr(); $xfer += $elem94->read($input); $this->conjuncts[] = $elem94; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->compact_data); } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::STRUCT) { $this->hdfs_scan_node = new \THdfsScanNode(); $xfer += $this->hdfs_scan_node->read($input); } else { $xfer += $input->skip($ftype); } break; case 10: if ($ftype == TType::STRUCT) { $this->hbase_scan_node = new \THBaseScanNode(); $xfer += $this->hbase_scan_node->read($input); } else { $xfer += $input->skip($ftype); } break; case 11: if ($ftype == TType::STRUCT) { $this->hash_join_node = new \THashJoinNode(); $xfer += $this->hash_join_node->read($input); } else { $xfer += $input->skip($ftype); } break; case 12: if ($ftype == TType::STRUCT) { $this->agg_node = new \TAggregationNode(); $xfer += $this->agg_node->read($input); } else { $xfer += $input->skip($ftype); } break; case 13: if ($ftype == TType::STRUCT) { $this->sort_node = new \TSortNode(); $xfer += $this->sort_node->read($input); } else { $xfer += $input->skip($ftype); } break; case 14: if ($ftype == TType::STRUCT) { $this->merge_node = new \TMergeNode(); $xfer += $this->merge_node->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 2: if ($ftype == TType::STRUCT) { $this->plan = new \TPlan(); $xfer += $this->plan->read($input); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::LST) { $this->output_exprs = array(); $_size0 = 0; $_etype3 = 0; $xfer += $input->readListBegin($_etype3, $_size0); for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; $elem5 = new \TExpr(); $xfer += $elem5->read($input); $this->output_exprs[] = $elem5; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::STRUCT) { $this->output_sink = new \TDataSink(); $xfer += $this->output_sink->read($input); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRUCT) { $this->partition = new \TDataPartition(); $xfer += $this->partition->read($input); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }
public function read($input) { $xfer = 0; $fname = null; $ftype = 0; $fid = 0; $xfer += $input->readStructBegin($fname); while (true) { $xfer += $input->readFieldBegin($fname, $ftype, $fid); if ($ftype == TType::STOP) { break; } switch ($fid) { case 1: if ($ftype == TType::BYTE) { $xfer += $input->readByte($this->lineDelim); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::BYTE) { $xfer += $input->readByte($this->fieldDelim); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::BYTE) { $xfer += $input->readByte($this->collectionDelim); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::BYTE) { $xfer += $input->readByte($this->mapKeyDelim); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::BYTE) { $xfer += $input->readByte($this->escapeChar); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::I32) { $xfer += $input->readI32($this->fileFormat); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::LST) { $this->partitionKeyExprs = array(); $_size0 = 0; $_etype3 = 0; $xfer += $input->readListBegin($_etype3, $_size0); for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; $elem5 = new \TExpr(); $xfer += $elem5->read($input); $this->partitionKeyExprs[] = $elem5; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 8: if ($ftype == TType::I32) { $xfer += $input->readI32($this->blockSize); } else { $xfer += $input->skip($ftype); } break; case 9: if ($ftype == TType::I32) { $xfer += $input->readI32($this->compression); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }