Return-Path: Delivered-To: apmail-hadoop-pig-commits-archive@www.apache.org Received: (qmail 62360 invoked from network); 4 Feb 2010 01:45:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 01:45:42 -0000 Received: (qmail 48245 invoked by uid 500); 4 Feb 2010 01:45:42 -0000 Delivered-To: apmail-hadoop-pig-commits-archive@hadoop.apache.org Received: (qmail 48206 invoked by uid 500); 4 Feb 2010 01:45:42 -0000 Mailing-List: contact pig-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@hadoop.apache.org Delivered-To: mailing list pig-commits@hadoop.apache.org Received: (qmail 48197 invoked by uid 500); 4 Feb 2010 01:45:42 -0000 Delivered-To: apmail-incubator-pig-commits@incubator.apache.org Received: (qmail 48194 invoked by uid 99); 4 Feb 2010 01:45:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 01:45:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 01:45:34 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0500523888FE; Thu, 4 Feb 2010 01:45:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r906321 - in /hadoop/pig/branches/branch-0.6: CHANGES.txt src/docs/src/documentation/content/xdocs/piglatin_ref2.xml src/docs/src/documentation/content/xdocs/zebra_pig.xml Date: Thu, 04 Feb 2010 01:45:13 -0000 To: pig-commits@incubator.apache.org From: olga@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100204014514.0500523888FE@eris.apache.org> Author: olga Date: Thu Feb 4 01:45:13 2010 New Revision: 906321 URL: http://svn.apache.org/viewvc?rev=906321&view=rev Log: PIG-1214: Pig 0.6 Docs fixes (chandec via olgan) Modified: hadoop/pig/branches/branch-0.6/CHANGES.txt hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/piglatin_ref2.xml hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/zebra_pig.xml Modified: hadoop/pig/branches/branch-0.6/CHANGES.txt URL: http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.6/CHANGES.txt?rev=906321&r1=906320&r2=906321&view=diff ============================================================================== --- hadoop/pig/branches/branch-0.6/CHANGES.txt (original) +++ hadoop/pig/branches/branch-0.6/CHANGES.txt Thu Feb 4 01:45:13 2010 @@ -26,6 +26,8 @@ IMPROVEMENTS +PIG-1214: Pig 0.6 Docs fixes (chandec via olgan) + PIG-1197: TextLoader updated to match changes to PigStorage (gates) PIG-1192: Pig 0.6 Docs fixes (chandec via olgan) Modified: hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/piglatin_ref2.xml URL: http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/piglatin_ref2.xml?rev=906321&r1=906320&r2=906321&view=diff ============================================================================== --- hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/piglatin_ref2.xml (original) +++ hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/piglatin_ref2.xml Thu Feb 4 01:45:13 2010 @@ -8710,7 +8710,7 @@ - PigStorage(field_delimiter)        + PigStorage(field_delimiter)  @@ -8732,16 +8732,15 @@
Usage - PigStorage works with structured text files in human-readable UTF-8 format. PigStorage also works with simple and complex data types and is the default function for the LOAD and STORE operators. - - - For load statements, PigStorage expects data to be formatted as delimiter-separated fields and newline-separated records ('\n'). - - - For store statements, PigStorage outputs data as delimiter-separated fields and newline-separated records ('\n'). - - - For both load and store statements the default field delimiter is the tab character ('\t'). You can use other characters as field delimiters, but separators such as ^A or Ctrl-A should be represented in Unicode (\u0001) using UTF-16 encoding (see Wikipedia ASCII, Unicode, and UTF-16). + PigStorage is the default function for the LOAD and STORE operators. PigStorage works with structured text files (in human-readable UTF-8 format) and bzip compressed text files. PigStorage also works with simple and complex data types. + + Load statements – PigStorage expects data to be formatted using field delimiters, either the tab character ('\t') or other specified character. + + Store statements – PigStorage outputs data using field deliminters, either the tab character ('\t') or other specified character, and the line feed record delimiter ('\n'). + + Field Deliminters – For load and store statements the default field delimiter is the tab character ('\t'). You can use other characters as field delimiters, but separators such as ^A or Ctrl-A should be represented in Unicode (\u0001) using UTF-16 encoding (see Wikipedia ASCII, Unicode, and UTF-16). + + Record Deliminters – For load statements Pig interprets the line feed ( '\n' ), carriage return ( '\r' or CTRL-M) and combined CR + LF ( '\r\n' ) characters as record delimiters (do not use these characters as field delimiters). For store statements Pig uses the line feed ('\n') character as the record delimiter. For load and store statements, if the input file is a bzip file (ending in .bz or .bz2), Pig uses the line feed ('\n') character as the record delimiter.
Modified: hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/zebra_pig.xml URL: http://svn.apache.org/viewvc/hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/zebra_pig.xml?rev=906321&r1=906320&r2=906321&view=diff ============================================================================== --- hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/zebra_pig.xml (original) +++ hadoop/pig/branches/branch-0.6/src/docs/src/documentation/content/xdocs/zebra_pig.xml Thu Feb 4 01:45:13 2010 @@ -102,8 +102,14 @@
- - + +
+ Sorting Data +

+ Pig allows you to sort data by ascending (ASC) or descending (DESC) order (for more information, see ORDER). Currently, Zebra supports tables that are sorted in ascending order. Zebra does not support tables that are sorted in descending order; if Zebra encounters a table to be stored that is sorted in descending order, Zebra will issue a warning and store the table as an unsorted table.

+
+ +
Storing Data