MCPcopy Create free account
hub / github.com/apache/avro / append

Method append

lang/php/lib/DataFile/AvroDataIOWriter.php:172–180  ·  view source on GitHub ↗

* @param mixed $datum */

($datum)

Source from the content-addressed store, hash-verified

170 * @param mixed $datum
171 */
172 public function append($datum)
173 {
174 $this->datum_writer->write($datum, $this->buffer_encoder);
175 $this->block_count++;
176
177 if ($this->buffer->length() >= AvroDataIO::SYNC_INTERVAL) {
178 $this->writeBlock();
179 }
180 }
181
182 /**
183 * Writes a block of data to the AvroIO object container.

Calls 3

writeBlockMethod · 0.95
writeMethod · 0.65
lengthMethod · 0.65