Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 58220200C1A for ; Mon, 13 Feb 2017 09:20:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 56AEB160B60; Mon, 13 Feb 2017 08:20:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A0EC7160B4D for ; Mon, 13 Feb 2017 09:20:35 +0100 (CET) Received: (qmail 15591 invoked by uid 500); 13 Feb 2017 08:20:34 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 15579 invoked by uid 99); 13 Feb 2017 08:20:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2017 08:20:34 +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 13D70C047B for ; Mon, 13 Feb 2017 08:20:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.498 X-Spam-Level: ** X-Spam-Status: No, score=2.498 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 6Rr2Ipu4A9KM for ; Mon, 13 Feb 2017 08:20:31 +0000 (UTC) Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 347525F47E for ; Mon, 13 Feb 2017 08:20:31 +0000 (UTC) Received: by mail-ua0-f171.google.com with SMTP id 35so61140417uak.1 for ; Mon, 13 Feb 2017 00:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=GetbWUZ344B4vmnFl9xHqdSB/2j+6mUNPJ9ovINbQbA=; b=boM5E507TdMvzoPJtXFJY66X41k3CUS4dEOZwRFOw4kvK6y0hqyridK45l6eqL8Bae q3HGhogSC2+t0oT01+O2lk5BfPRcnJeiaopOD09u8x1t0wwMJDldHDOMOAKd7kH2aKLF c+Ni0xRYhRcjMzUVMPGJLmNkZxoOT/GO2AEGSgjtsXn52D8jnqB+GdMcWa+LL3/ML95C Mq4VCDfoLRFJqq7mDOYXc2WknSoLaVUOV2aFqkR5k7izCG6t2k+akr/8XGpb82Bq3N7d Yrvkv5KBzOvoiND+7p+vegGBcYPm/hnZ4svjKv8lWhS4eVEOlTNImAWCJPN6MlCbFGXw gleg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=GetbWUZ344B4vmnFl9xHqdSB/2j+6mUNPJ9ovINbQbA=; b=Ds9zND5OwUIFgWOqvs7nr9PTGX075k1ePdUzdX4JVkqZqTyzZ35hd0nJ8aAmEqrXyC 2zelDOEUtEbbVkbJ9SJ1ctGU0HGNpDQs2TKnUA0pBy/fYwdDsHUsOY+/KvC3D/JEsxEu YAXBkieuHSOkojsaeRWrWdK+Nrke1i6E/8JZ/o9qkktabatkzc7ey+8/OYUZtrOH/CTA 1TjPuATpHrcLLAUUz0Rsl58ZjoZj12gvewO/9zGdywBEqMzSQZor+8SzS3m2+uArluQN PKcz8rGjpCuEXo9oDud0xQZgF4TCxDrxucXW7vzmmQhpNPvhxz5rZc+jpSmu3Ne4uUlX nOkQ== X-Gm-Message-State: AMke39kzeKZJpBRYFUEFdVwiY+UhShvLUPdsZX6IoCRuN1r2bzDiP2uk9cepviKPTFQwcAcYC4LDY8332FiAVjaO X-Received: by 10.159.40.101 with SMTP id c92mr9472173uac.111.1486974028936; Mon, 13 Feb 2017 00:20:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.56.130 with HTTP; Mon, 13 Feb 2017 00:20:28 -0800 (PST) In-Reply-To: References: From: Vladimir Ozerov Date: Mon, 13 Feb 2017 11:20:28 +0300 Message-ID: Subject: Re: general question To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=94eb2c0480dac90e000548651e94 archived-at: Mon, 13 Feb 2017 08:20:36 -0000 --94eb2c0480dac90e000548651e94 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Please have a look at BinarySchema and it's usages. Essentially this is a fingerprint of object fields in the order they were serialized, represented as [field name] -> [position] hash map. Consider and object with 3 fields - A, B, C. There could be 6 different schemas for it: [A, B, C], [A, C, B], [B, A, C], [B, C, A]. [C, A, B], [C, B, A]. We use schemas to achieve O(1) field lookup time. On Mon, Feb 13, 2017 at 11:05 AM, ALEKSEY KUZNETSOV < alkuznetsov.sb@gmail.com> wrote: > What is schema in your context? > > =D0=BF=D0=BD, 13 =D1=84=D0=B5=D0=B2=D1=80. 2017 =D0=B3. =D0=B2 10:50, Vla= dimir Ozerov : > > > Alex, > > > > FieldAccessor stores field positions for the given schema to allow for > fast > > field value lookup. > > > > On Fri, Feb 10, 2017 at 7:06 PM, ALEKSEY KUZNETSOV < > > alkuznetsov.sb@gmail.com > > > wrote: > > > > > Guys, i have a question.Why do we store fields position information i= n > > > FieldAccessor before hashcode evaluation? Test example is in > > > : org.apache.ignite.internal.binary.BinaryFieldIdentityResolverSel > > > fTest#testHashCode > > > -- > > > > > > *Best Regards,* > > > > > > *Kuznetsov Aleksey* > > > > > > -- > > *Best Regards,* > > *Kuznetsov Aleksey* > --94eb2c0480dac90e000548651e94--