Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9632A7C1D for ; Sat, 24 Sep 2011 22:53:40 +0000 (UTC) Received: (qmail 51146 invoked by uid 500); 24 Sep 2011 22:53:40 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 51104 invoked by uid 500); 24 Sep 2011 22:53:40 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 51096 invoked by uid 99); 24 Sep 2011 22:53:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Sep 2011 22:53:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of joecrow@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 24 Sep 2011 22:53:33 +0000 Received: by wwp14 with SMTP id 14so3922795wwp.30 for ; Sat, 24 Sep 2011 15:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UsirBxzZfYXOqF6VfToVdIQuUyfWBgsHcBr+HUFUuZw=; b=XEpQCg1gd8C5Of6JGtC8YsmsUxWSALSRihQZJdC3E+NT1UJ1UhacMn+E79kPWwRIFf 7JNPUkUiQQomiHl7thz0k2BnHk2qeDo0BVRw6ruUbgqOHa43rtLaVc6Vcp495QGtQGha +aY3lCu2xFtTpjt8RXp/BAiEFGiGRqGJ4ZvDc= MIME-Version: 1.0 Received: by 10.227.10.67 with SMTP id o3mr3740788wbo.113.1316904793412; Sat, 24 Sep 2011 15:53:13 -0700 (PDT) Received: by 10.180.82.170 with HTTP; Sat, 24 Sep 2011 15:53:13 -0700 (PDT) In-Reply-To: References: Date: Sat, 24 Sep 2011 18:53:13 -0400 Message-ID: Subject: Re: In Java, how can I create an equivalent of an Apache Avro container file without being forced to use a File as a medium? From: Joe Crobak To: user@avro.apache.org Content-Type: multipart/alternative; boundary=002215974c366a133f04adb7ca23 X-Virus-Checked: Checked by ClamAV on apache.org --002215974c366a133f04adb7ca23 Content-Type: text/plain; charset=ISO-8859-1 Hi Bernard, I think you're looking for the DataFileStream class: http://avro.apache.org/docs/1.5.4/api/java/org/apache/avro/file/DataFileStream.html Some of the command line tools use this class-- e.g. see http://svn.apache.org/viewvc/avro/tags/release-1.5.4/lang/java/tools/src/main/java/org/apache/avro/tool/ToTextTool.java?revision=1169533&view=markuplines 64-69. Best, Joe On Sat, Sep 24, 2011 at 5:14 AM, Bernard Liang wrote: > Hello, > > This is somewhat of a more advanced question regarding the Java > implementation of Avro. The details are located at the following link: > > > http://stackoverflow.com/questions/7537959/in-java-how-can-i-create-an-equivalent-of-an-apache-avro-container-file-without > > If there is anyone that might be able to assist me with this, I would like > to get in contact with you. > > Best regards, > Bernard Liang > --002215974c366a133f04adb7ca23 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Bernard,

I think you're looking for the DataFileS= tream class:=A0http://avro.apache.org/docs/1.5.4/api/j= ava/org/apache/avro/file/DataFileStream.html


Best,
Joe

O= n Sat, Sep 24, 2011 at 5:14 AM, Bernard Liang <liang.bernard@gmail.com> = wrote:
Hello,

This is somewhat of a more ad= vanced question regarding the Java implementation of Avro. The details are = located at the following link:

http://stackoverflow.com/questions/7537959/in-java-how-can-i-create-= an-equivalent-of-an-apache-avro-container-file-without

If there is anyone that might be able to assist me with this, I would l= ike to get in contact with you.

Best regards,
Bernard Liang

--002215974c366a133f04adb7ca23--