Return-Path: X-Original-To: apmail-flink-user-archive@minotaur.apache.org Delivered-To: apmail-flink-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9070D18724 for ; Sun, 6 Mar 2016 18:10:39 +0000 (UTC) Received: (qmail 97954 invoked by uid 500); 6 Mar 2016 18:10:38 -0000 Delivered-To: apmail-flink-user-archive@flink.apache.org Received: (qmail 97856 invoked by uid 500); 6 Mar 2016 18:10:38 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flink.apache.org Delivered-To: mailing list user@flink.apache.org Received: (qmail 97846 invoked by uid 99); 6 Mar 2016 18:10:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Mar 2016 18:10:38 +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 5F70A1804E1 for ; Sun, 6 Mar 2016 18:10:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, 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-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 9HGO4j6Mim0L for ; Sun, 6 Mar 2016 18:10:37 +0000 (UTC) Received: from mail-qg0-f44.google.com (mail-qg0-f44.google.com [209.85.192.44]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EE61A5F3F2 for ; Sun, 6 Mar 2016 18:10:36 +0000 (UTC) Received: by mail-qg0-f44.google.com with SMTP id y89so80987826qge.2 for ; Sun, 06 Mar 2016 10:10:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=XAaB56L5ImZQMOKSf+70IMigHw3EMbqtUsycnEhMXvA=; b=SmRhhBHdScM6YXTzYlLOSNjpVayjHkdSSYdMBbS4yo+tuy/Xr5v3tnbXZVVBmI1pQZ clOTCBZi0NylOHganKRrIS967YoW3Ek5PL1pm/lDHymJ/zBJADbUwdfIKMBHMH/dCSZh yAOVu8VkXUZJ2e54/PscpoKq9dVHA1thM5Hp5vtwMBzM6hMlTshVZLaERAVemk80fgGM P9OUhWHyjytrqepJ3H+lItBJWSwE8QwdnaJWzXESd4VD8hDe/nUK477O4YPUlOvH4phe TJ1jeievf9GOZVRHSq7avAJfBU148ZTjqHqYf7Eu6WaQ4dZXhRmM6XvYnPJrCqW5H7ki gYeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=XAaB56L5ImZQMOKSf+70IMigHw3EMbqtUsycnEhMXvA=; b=WfqagZ5cwsZg5UeXPztdvaz5v1IkO376r29v/TnsdSVu1bhdfblfbKjenmEoPHf8rP YhzciuH8U0TTI77FojEKeKMkFLTLlSVEJIvZqKAQzwglJiHZeMWz5749HUKmRqKF4d+v gSE3RjUy8wHCBi61mduQyMyrkZypmYzIWmo361AclKB+dGsbRP/0shzWOI5nd1bJAhQ1 KJanS9omVrulUT5sJ4pcM9bDVakBgQUs2HeNvD5dBtk0ULwDFTQXf10ixmv0mC0mAuq/ 4x+ZN6RexrbxOFIrSQp2EePm0BJzPkKoqbp5RRZYdW6DA9PYH0Bdy/32L1l0pLBU4lxJ YleA== X-Gm-Message-State: AD7BkJJViVluSRyJsASXqhuXw+t+UXwUZl00An21Ion9KQXIKdvVjEC48S7Qdfcg+xxBKBDsXj+uK4fa2xlSWA== MIME-Version: 1.0 X-Received: by 10.140.131.6 with SMTP id 6mr24204759qhd.67.1457287836088; Sun, 06 Mar 2016 10:10:36 -0800 (PST) Received: by 10.55.70.70 with HTTP; Sun, 6 Mar 2016 10:10:36 -0800 (PST) Date: Sun, 6 Mar 2016 19:10:36 +0100 Message-ID: Subject: Retrieve elements from the Dataset without using collect From: subash basnet To: user@flink.apache.org Content-Type: multipart/alternative; boundary=001a11c07ca2ce448e052d654382 --001a11c07ca2ce448e052d654382 Content-Type: text/plain; charset=UTF-8 Hello all, My requirement is to get suppose top '10' elements from the DataSet as another DataSet. How would I do that without using collect. Eg: *DataSet> counts =* *data.flatMap(new Tokenizer());* I want a new DataSet containing 10 elements of *counts*. And, what would be the way to retrieve individual elements of DataSet without using list via collect? Best Regards, Subash Basnet --001a11c07ca2ce448e052d654382 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello all,=C2=A0

My requirement is to get suppose t= op '10' elements from the DataSet as another DataSet. How would I d= o that without using collect.=C2=A0
Eg:
DataSet<Tuple= 2<Integer, Double[]>> counts =3D=C2=A0data.flatMap(new Tokenizer());
I want a new DataSet containing 10 elements of counts.=C2=A0
And, what would be the way to retrieve individual elements of DataSet wit= hout using list via collect?


Best Regards,
Subash Basnet
--001a11c07ca2ce448e052d654382--