Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-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 DECBA101D2 for ; Tue, 21 Jan 2014 19:35:26 +0000 (UTC) Received: (qmail 18512 invoked by uid 500); 21 Jan 2014 19:35:22 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 18353 invoked by uid 500); 21 Jan 2014 19:35:21 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 18229 invoked by uid 500); 21 Jan 2014 19:35:20 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 18208 invoked by uid 99); 21 Jan 2014 19:35:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 19:35:19 +0000 Date: Tue, 21 Jan 2014 19:35:19 +0000 (UTC) From: "Nezih Yigitbasi (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (PIG-3680) A new type of EvalFunc, TransactionalEvalFunc, would be useful MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Nezih Yigitbasi created PIG-3680: ------------------------------------ Summary: A new type of EvalFunc, TransactionalEvalFunc, would be useful Key: PIG-3680 URL: https://issues.apache.org/jira/browse/PIG-3680 Project: Pig Issue Type: New Feature Reporter: Nezih Yigitbasi Assignee: Nezih Yigitbasi Priority: Minor I think a new type of EvalFunc that has some notion of a transactional context would be very useful. This new TransactionalEvalFunc abstract class should have methods like initialize, onSuccess, and onFailure to mark the transaction boundaries. Such EvalFuncs would be useful for interacting with external resources. For example, to delete rows from an existing hbase table such a transactional UDF would be useful. Of course we can imitate this with a StoreFunc, but conceptually StoreFunc's are restricted to writes. If the community thinks this will be useful, I am ready to spend time on this.. -- This message was sent by Atlassian JIRA (v6.1.5#6160)