Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 8927 invoked from network); 18 Nov 2007 11:08:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Nov 2007 11:08:24 -0000 Received: (qmail 24520 invoked by uid 500); 18 Nov 2007 11:08:09 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 24477 invoked by uid 500); 18 Nov 2007 11:08:09 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 24466 invoked by uid 99); 18 Nov 2007 11:08:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Nov 2007 03:08:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.111.4.25] (HELO out1.smtp.messagingengine.com) (66.111.4.25) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Nov 2007 11:07:59 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id C13B047F16 for ; Sun, 18 Nov 2007 06:07:52 -0500 (EST) Received: from web8.messagingengine.com ([10.202.2.217]) by compute1.internal (MEProxy); Sun, 18 Nov 2007 06:07:52 -0500 Received: by web8.messagingengine.com (Postfix, from userid 99) id 2915922803; Sun, 18 Nov 2007 06:07:52 -0500 (EST) Message-Id: <1195384072.4792.1221956273@webmail.messagingengine.com> X-Sasl-Enc: RRy8SYfSkIgPJdFfjlwId0sLFeRVQXc9D2Fb0wfnmsLM 1195384072 From: "Michael McCandless" To: java-dev@lucene.apache.org Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: Subject: Re: Payload API In-Reply-To: Date: Sun, 18 Nov 2007 06:07:52 -0500 X-Virus-Checked: Checked by ClamAV on apache.org "Yonik Seeley" wrote: > So I think we should change + finalize the payload API before Lucene > 2.3 comes out. > > Single biggest drawback about current payloads is that there isn't any > explicit support for adding different types of payloads to the same > token. > I don't really see a good fix to that though, so I'm OK with leaving > that as it is. > > One change I'd support is to remove the Payload class and replace it > with members directly on Token: > > class Token { > byte[] payload; > int payloadLength; > void setPayload(byte[], int length) > byte[] getPayload() > int getPayloadLength() > ... > } +1 Mike --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org