Return-Path: X-Original-To: apmail-samza-dev-archive@minotaur.apache.org Delivered-To: apmail-samza-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 F23C618B9C for ; Thu, 7 Jan 2016 21:51:08 +0000 (UTC) Received: (qmail 64372 invoked by uid 500); 7 Jan 2016 21:51:08 -0000 Delivered-To: apmail-samza-dev-archive@samza.apache.org Received: (qmail 64313 invoked by uid 500); 7 Jan 2016 21:51:08 -0000 Mailing-List: contact dev-help@samza.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@samza.apache.org Delivered-To: mailing list dev@samza.apache.org Received: (qmail 64301 invoked by uid 99); 7 Jan 2016 21:51:08 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jan 2016 21:51:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 00C3918050A for ; Thu, 7 Jan 2016 21:51:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.148 X-Spam-Level: *** X-Spam-Status: No, score=3.148 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id u9iY95xz2BYH for ; Thu, 7 Jan 2016 21:51:07 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id F0ECC20D10 for ; Thu, 7 Jan 2016 21:51:06 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id q21so267105906iod.0 for ; Thu, 07 Jan 2016 13:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=sh4ymjzwkUjVvU5/MZQYJRlRnGl7vTqFSqomJtZYFDg=; b=U5c9Mmd7jb+NiWAiSpO/5JwaF3SwfmSpyoO+q0waMpwyO7CR/GBF9N+6yiaNYcjS+U GnOjjuRFskJK9lH9jwtlgYIR9AFNP1Ww5uwk1lMtf/15yXWIKyB7gSHv7DrOOXCtJ+47 KQacgchZ6xgO5RcjUq2PaX1qbwFkUNbxQMMpNAknZIRjueu8KT/wttVwP8HVJnFIc8Vv BqIX/dSxwyaQB4+31p2OyGhLVKjBd/c/dE83SEn0sV1bfU+R5Baitu+ZgZ2+MHlz6A7+ hqHHDh0m6zL3/0HDdKvgc7HccmOu3AYZoIu2VTWBqagBdJ2zP6L/NaiQr4pDxTH+sYhn u7Ew== MIME-Version: 1.0 X-Received: by 10.107.160.208 with SMTP id j199mr95929066ioe.23.1452203466431; Thu, 07 Jan 2016 13:51:06 -0800 (PST) Received: by 10.36.37.136 with HTTP; Thu, 7 Jan 2016 13:51:06 -0800 (PST) In-Reply-To: References: Date: Thu, 7 Jan 2016 13:51:06 -0800 Message-ID: Subject: Re: Java Object in RocksDb From: Yi Pan To: dev@samza.apache.org Content-Type: multipart/alternative; boundary=001a1140bfd8c22d560528c577b5 --001a1140bfd8c22d560528c577b5 Content-Type: text/plain; charset=UTF-8 Hi, Leo, Samza RocksDB store stores ByteArray for keys and values on-disk. You can define your own key and msg serde via the configuration ( http://samza.apache.org/learn/documentation/0.10/jobs/configuration-table.html#stores-key-serde, http://samza.apache.org/learn/documentation/0.10/jobs/configuration-table.html#stores-msg-serde), and Samza will use the configured serde classes to serialize/de-serialize the on-disk data in RocksDB, which are raw byte arrays. You can implement POJO serde classes to serialize/de-serialize objects to and from the raw byte array format. Hope that is clear. -Yi On Thu, Jan 7, 2016 at 12:11 PM, Leo Woessner wrote: > Can I insert a POJO in RocksDB? > > I see this serde, > > https://samza.apache.org/learn/documentation/0.10/container/serialization.html > serializable Serializable Object Type > > > > -- > Leo Woessner > --001a1140bfd8c22d560528c577b5--