FYI: Fieldable is an interface. Field is indeed final, but
AbstractField implements most everything in Fieldable and is not
final, so if you want to customize, just be aware of the small issues
with Document.getFields() method versus Document.getFieldables()
-Grant
On Sep 14, 2006, at 11:19 AM, Chris (JIRA) wrote:
Hashtable based Document
------------------------
Key: LUCENE-671
URL: http://issues.apache.org/jira/browse/LUCENE-671
Project: Lucene - Java
Issue Type: Improvement
Components: Index, Search
Affects Versions: 2.0.0, 1.9
Reporter: Chris
Priority: Minor
I've attached a Document based on a hashtable and a performance
test case. It performs better in most cases (all but enumeration by
my measurement), but likely uses a larger memory footprint. The
Document testcase will fail since it accesses the "fields" variable
directly and gets confused when it's not the list it expected it to
be.
If nothing else we would be interested in at least being able to
extend Document, which is currently declared final. (Anyone know
the performance gains on declaring a class final?) Currently we
have to maintain a copy of lucene which has methods and classes
definalized and overriden.
There are other classes as well that could be declared non-final
(Fieldable comes to mind) since it's possible to make changes for
project specific situations in those aswell but that's off-topic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://issues.apache.org/jira/secure/
Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/
software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------
Grant Ingersoll
Sr. Software Engineer
Center for Natural Language Processing
Syracuse University
335 Hinds Hall
Syracuse, NY 13244
http://www.cnlp.org
Voice: 315-443-5484
Skype: grant_ingersoll
Fax: 315-443-6886
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]