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.

Reply via email to