Return-Path: X-Original-To: apmail-avro-dev-archive@www.apache.org Delivered-To: apmail-avro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11EFA7358 for ; Mon, 21 Nov 2011 06:52:46 +0000 (UTC) Received: (qmail 8396 invoked by uid 500); 21 Nov 2011 06:52:45 -0000 Delivered-To: apmail-avro-dev-archive@avro.apache.org Received: (qmail 8189 invoked by uid 500); 21 Nov 2011 06:52:40 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 8181 invoked by uid 99); 21 Nov 2011 06:52:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 06:52:38 +0000 X-ASF-Spam-Status: No, hits=-1999.7 required=5.0 tests=ALL_TRUSTED,FROM_LOCAL_HEX,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.87.106.249] (HELO git.apache.org) (192.87.106.249) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 06:52:36 +0000 Received: from git.apache.org (localhost [127.0.0.1]) by git.apache.org (8.13.8+Sun/8.13.8) with ESMTP id pAL6qLAp021390 for ; Mon, 21 Nov 2011 06:52:21 GMT Received: (from git@localhost) by git.apache.org (8.13.8+Sun/8.13.8/Submit) id pAL6qLcF021389 for dev@avro.apache.org; Mon, 21 Nov 2011 06:52:21 GMT From: Hitwise To: dev@avro.apache.org Date: Sun, 20 Nov 2011 22:52:08 -0800 Subject: [avro] Codec deflate (#5) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-Id: MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi there, We've added (deflate) codec support to avro-c! Please let me know what should be changed/fixed/etc - Lucas Martin-King (Experian Hitwise) You can merge this Pull Request by running: git pull https://github.com/hitwise/avro codec-deflate Or you can view, comment on it, or merge it online at: https://github.com/apache/avro/pull/5 -- Commit Summary -- * Added zlib as dependency in avro-c.pc.in * Initial codec support * Added codec.{c,h} to CMakeLists.txt * Make sure codec is created before file writer is initialized fully * Added libz to CMakeLists * Added public method for creating a file writer with codec * Use zlib directly so we have raw deflate blocks instead of zlib blocks * Added codec support to file_read_header * Make sure we free codec memory on file close * Free up zlib private data; fix memory leak * Refactor null codec implementation into functions * Fixed invalid return value * Initial inflate codec support * Reading data files with codec support * Changed examples/quickstop to use defate codec -- File Changes -- M lang/c/examples/CMakeLists.txt (2) M lang/c/examples/quickstop.c (2) M lang/c/src/CMakeLists.txt (6) M lang/c/src/avro-c.pc.in (1) M lang/c/src/avro/io.h (3) A lang/c/src/codec.c (258) A lang/c/src/codec.h (41) M lang/c/src/datafile.c (130) M lang/c/tests/CMakeLists.txt (18) -- Patch Links -- https://github.com/apache/avro/pull/5.patch https://github.com/apache/avro/pull/5.diff --- Reply to this email directly or view it on GitHub: https://github.com/apache/avro/pull/5