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::I64) { $xfer += $input->readI64($this->mutator); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->cells = array(); $_size165 = 0; $_etype168 = 0; $xfer += $input->readListBegin($_etype168, $_size165); for ($_i169 = 0; $_i169 < $_size165; ++$_i169) { $elem170 = null; $elem170 = new Hypertable_ThriftGen_Cell(); $xfer += $elem170->read($input); $this->cells[] = $elem170; } $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 __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'row_key', 'type' => TType::STRING), 2 => array('var' => 'column_family', 'type' => TType::STRING), 3 => array('var' => 'column_qualifier', 'type' => TType::STRING), 4 => array('var' => 'value', 'type' => TType::STRING), 5 => array('var' => 'timestamp', 'type' => TType::I64), 6 => array('var' => 'revision', 'type' => TType::I64), 7 => array('var' => 'flag', 'type' => TType::I16)); } if (is_array($vals)) { if (isset($vals['row_key'])) { $this->row_key = $vals['row_key']; } if (isset($vals['column_family'])) { $this->column_family = $vals['column_family']; } if (isset($vals['column_qualifier'])) { $this->column_qualifier = $vals['column_qualifier']; } if (isset($vals['value'])) { $this->value = $vals['value']; } if (isset($vals['timestamp'])) { $this->timestamp = $vals['timestamp']; } if (isset($vals['revision'])) { $this->revision = $vals['revision']; } if (isset($vals['flag'])) { $this->flag = $vals['flag']; } } }
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::BOOL) { $xfer += $input->readBool($this->is_empty); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::I64) { $xfer += $input->readI64($this->id); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->is_scan); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::BOOL) { $xfer += $input->readBool($this->is_error); } else { $xfer += $input->skip($ftype); } break; case 5: if ($ftype == TType::I32) { $xfer += $input->readI32($this->error); } else { $xfer += $input->skip($ftype); } break; case 6: if ($ftype == TType::STRING) { $xfer += $input->readString($this->error_msg); } else { $xfer += $input->skip($ftype); } break; case 7: if ($ftype == TType::LST) { $this->cells = array(); $_size21 = 0; $_etype24 = 0; $xfer += $input->readListBegin($_etype24, $_size21); for ($_i25 = 0; $_i25 < $_size21; ++$_i25) { $elem26 = null; $elem26 = new Hypertable_ThriftGen_Cell(); $xfer += $elem26->read($input); $this->cells[] = $elem26; } $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 __construct($vals = null) { if (!isset(self::$_TSPEC)) { self::$_TSPEC = array(1 => array('var' => 'key', 'type' => TType::STRUCT, 'class' => 'Hypertable_ThriftGen_Key'), 2 => array('var' => 'value', 'type' => TType::STRING)); } if (is_array($vals)) { if (isset($vals['key'])) { $this->key = $vals['key']; } if (isset($vals['value'])) { $this->value = $vals['value']; } } }
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::LST) { $this->results = array(); $_size0 = 0; $_etype3 = 0; $xfer += $input->readListBegin($_etype3, $_size0); for ($_i4 = 0; $_i4 < $_size0; ++$_i4) { $elem5 = null; $xfer += $input->readString($elem5); $this->results[] = $elem5; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 2: if ($ftype == TType::LST) { $this->cells = array(); $_size6 = 0; $_etype9 = 0; $xfer += $input->readListBegin($_etype9, $_size6); for ($_i10 = 0; $_i10 < $_size6; ++$_i10) { $elem11 = null; $elem11 = new Hypertable_ThriftGen_Cell(); $xfer += $elem11->read($input); $this->cells[] = $elem11; } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); } break; case 3: if ($ftype == TType::I64) { $xfer += $input->readI64($this->scanner); } else { $xfer += $input->skip($ftype); } break; case 4: if ($ftype == TType::I64) { $xfer += $input->readI64($this->mutator); } else { $xfer += $input->skip($ftype); } break; default: $xfer += $input->skip($ftype); break; } $xfer += $input->readFieldEnd(); } $xfer += $input->readStructEnd(); return $xfer; }