hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ananth Sarathy (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-2532) LuceneDocumentWrapper Needs no argument constructor
Date Tue, 11 May 2010 15:40:43 GMT
LuceneDocumentWrapper Needs no argument constructor

                 Key: HBASE-2532
                 URL: https://issues.apache.org/jira/browse/HBASE-2532
             Project: Hadoop HBase
          Issue Type: Bug
          Components: mapreduce
    Affects Versions: 0.20.3
         Environment: All
            Reporter: Ananth Sarathy

For reading an object out a sequencefile, a no argument constructor is required... 
if not you end up with a  java.lang.NoSuchMethodException

>From Owen O'Malley

Assumption for Writables that should be documented somewhere:
 * Each type must have a 0 argument constructor.
 * Each call to write must not assume any shared state.
 * Each call to readFields must consume exactly the number of bytes
produced by write.

SequenceFile also assumes:
 * All keys are exactly the same type (not polymorphic).
 * All values are exactly the same type.
 * Both types are specified by the writer in the create call.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message