Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6739718D95 for ; Tue, 1 Sep 2015 22:23:49 +0000 (UTC) Received: (qmail 32150 invoked by uid 500); 1 Sep 2015 22:23:49 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 32106 invoked by uid 500); 1 Sep 2015 22:23:49 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 32095 invoked by uid 99); 1 Sep 2015 22:23:49 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2015 22:23:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A3358C0C9B for ; Tue, 1 Sep 2015 22:23:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rOkI1qXVME7v for ; Tue, 1 Sep 2015 22:23:39 +0000 (UTC) Received: from mail-ig0-f179.google.com (mail-ig0-f179.google.com [209.85.213.179]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 82FBF5070D for ; Tue, 1 Sep 2015 22:23:39 +0000 (UTC) Received: by igbkq10 with SMTP id kq10so12459308igb.0 for ; Tue, 01 Sep 2015 15:23:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=kQ73VkwCE9X645xN55xSDVwY/yLDExeFyazyRw8/VWk=; b=m11mEJZ+Yg52rMUKvBWGde/f6zHt4rMScu1WvHCueFbulljjtsXEVbM+wjqXl2az1p Co5FcDP4Z6qXIT4jK0kFQJkKrHVFQn5I+ePd/aTYWbTKj3d4a+5LqIQMVW+GPro6gB33 Lhvu+TiHeZ/a2mGJ5fyjo/FklAPs5TQrfvbMSg5ajP5Rey+xRtvAbPavuU0ne1lpC76k MB+oKj1K9npu01+3/2yef6Ni0v1tCrqc5XG0bwCHkiJ8KzY3KEhMnsHa/Cm8IrHPsj7J v0ir7eiPu/mScVbPuJfOEJSzwDGyr7+iLpOfeJ5dbOByGm5XT3ki6J2UoxzZR5wEgm8x Fu3Q== X-Gm-Message-State: ALoCoQlLjNo3RRxpBb0I3Le9P+ydmL7qFEv4tqfaTabFHya392ogDT/SzHOpDJMHfVcfltnsPrfK MIME-Version: 1.0 X-Received: by 10.50.87.98 with SMTP id w2mr531725igz.60.1441146219082; Tue, 01 Sep 2015 15:23:39 -0700 (PDT) Received: by 10.36.13.193 with HTTP; Tue, 1 Sep 2015 15:23:39 -0700 (PDT) In-Reply-To: References: <3b293890-d0f1-47db-9aca-9e6a8d0008ff@googlegroups.com> Date: Tue, 1 Sep 2015 15:23:39 -0700 Message-ID: Subject: Re: [malhar-users] Caching in Datatorrent From: Siyuan Hua To: dev@apex.incubator.apache.org Cc: malhar-users@googlegroups.com Content-Type: multipart/alternative; boundary=089e0111b8667552cf051eb7007b --089e0111b8667552cf051eb7007b Content-Type: text/plain; charset=UTF-8 The cache manager https://github.com/DataTorrent/Malhar/blob/master/contrib/src/main/java/org/apache/hadoop/io/file/tfile/CacheManager.java is a cache used only for DTFile. DTFile is a TFileReader(Writer) with cache which provides much faster IO compared to native hadoop TFile but keeps the format On Tue, Sep 1, 2015 at 2:58 PM, Thomas Weise wrote: > An operator can use any technology to implement the cache. Here is an > example how to structure a cache from the Malhar library: > > > https://github.com/apache/incubator-apex-malhar/blob/v3.0.0/library/src/main/java/com/datatorrent/lib/db/cache/AbstractDBLookupCacheBackedOperator.java > > > Please note that the resulting caching is local to each operator instance > (every partition has its own cache). The idea is that access to shared > state is minimized for more efficient processing. > > > On Mon, Aug 3, 2015 at 8:21 AM, Amol Kekre wrote: > > > > > Chiranjeevi, > > We do have guava ( > > https://code.google.com/p/guava-libraries/wiki/CachesExplained) > available > > as a Malhar operator > > > > > > > https://github.com/DataTorrent/Malhar/blob/master/contrib/src/main/java/org/apache/hadoop/io/file/tfile/CacheManager.java > > > > Do take a look. > > > > Thks, > > Amol > > > > > > On Mon, Aug 3, 2015 at 1:51 AM, ravi wrote: > > > >> Hi Team, > >> > >> Do we have caching available in Datatorrent? If yes, Please let me know > >> how to implement. > >> > >> -many thanks > >> Chiranjeevi > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "Malhar" group. > >> To unsubscribe from this group and stop receiving emails from it, send > an > >> email to malhar-users+unsubscribe@googlegroups.com. > >> To post to this group, send email to malhar-users@googlegroups.com. > >> Visit this group at http://groups.google.com/group/malhar-users. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Malhar" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to malhar-users+unsubscribe@googlegroups.com. > > To post to this group, send email to malhar-users@googlegroups.com. > > Visit this group at http://groups.google.com/group/malhar-users. > > For more options, visit https://groups.google.com/d/optout. > > > --089e0111b8667552cf051eb7007b--