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 7A238200B5E for ; Wed, 10 Aug 2016 18:29:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78B3A160AA4; Wed, 10 Aug 2016 16:29:32 +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 BFEEA160A8F for ; Wed, 10 Aug 2016 18:29:31 +0200 (CEST) Received: (qmail 52626 invoked by uid 500); 10 Aug 2016 16:29:30 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 52613 invoked by uid 99); 10 Aug 2016 16:29:30 -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; Wed, 10 Aug 2016 16:29:30 +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 F07AB18056D for ; Wed, 10 Aug 2016 16:29:29 +0000 (UTC) X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Amavis-Alert: BAD HEADER SECTION, Improper folded header field made up entirely of whitespace (char 20 hex): X-Spam-Report: ...that system for details.\n \n Content previ[...] X-Spam-Flag: NO X-Spam-Score: 0.951 X-Spam-Level: X-Spam-Status: No, score=0.951 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_COUK=1.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=spudsoft.co.uk Received: from mx2-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 tUIbHbxlYSjt for ; Wed, 10 Aug 2016 16:29:27 +0000 (UTC) Received: from smarthost03a.mail.zen.net.uk (smarthost03a.mail.zen.net.uk [212.23.1.20]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 327425F3A0 for ; Wed, 10 Aug 2016 16:29:27 +0000 (UTC) Received: from [82.71.61.60] (helo=mail.spudsoft.co.uk) by smarthost03a.mail.zen.net.uk with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1bXWNd-0005LQ-4h for dev@cxf.apache.org; Wed, 10 Aug 2016 16:29:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spudsoft.co.uk; s=mail; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To; bh=iehoR7nzJooKk+RQ3hXIZl3xboEMRcelAIY8XoC8/uM=; b=dpBsCNlg5zOkxSTusCoU311Gel f3Qyn9xgsIIc7d2GxJbPe09to/wIQGsXyLK646+jX4lmHtzk5HRhiW64MWxBleFajmmjyh73gI4cX pnGb5DjYJOjToxpbuYEZk37d4+Afccwl1zLje3TvfO9IWgl+o5xrfnvke64D2MA10EyA=; Received: from rassilon.spudsoft ([192.168.2.10]:7320 helo=[192.168.2.95]) by mail.spudsoft.co.uk with esmtpsa (TLSv1:ECDHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1bXWNb-0002bL-Qg for dev@cxf.apache.org; Wed, 10 Aug 2016 17:29:20 +0100 To: dev@cxf.apache.org From: Jim Talbut Subject: SearchBean Message-ID: Date: Wed, 10 Aug 2016 17:29:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Action: no action X-Originating-smarthost03a-IP: [82.71.61.60] archived-at: Wed, 10 Aug 2016 16:29:32 -0000 Hi, I'm trying to reuse the FIQL code (and possibly the ODP code) to implement a generic filtering mechanism for a data processing service. The data being processed can come from a variety of sources and its structure certainly won't be know at compile time. I have the data represented internally as an interface that is a very stripped down Map (it only implements get and forEach at the moment) - the data is presented to the filter one row at a time and can either be passed on or ignored. I have the FIQL code working using a SearchBean, but that involves copying all the data into the SearchBean, and then converting all the accessed fields into Strings. At the moment the FIQL code is quite tightly coupled to the SearchBean class - I can't directly use my QueryRow objects without either copying their data into SearchBeans or creating a new class derived from SearchBean and then overriding the getter. Would you be interested in making the Search API more usable with objects that don't fit either the POJO model or SearchBeans? One thought is to introduce a Beanspector interface and then give the parsers the ability to be given a Beanspector rather than create their own. I'd be happy to work on a patch if you think it'd be useful (won't be immediate, getting married in a fortnight!). Thanks. Jim