Issue 11631

ResultReader should be static and take a row in each method call

11631
Reporter: omeyn
Assignee: omeyn
Type: Bug
Summary: ResultReader should be static and take a row in each method call
Description: and hbase-utils should move from labs to gbif commons under org.gbif.hbase
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2012-07-27 13:35:48.502
Updated: 2013-12-17 15:16:43.387
Resolved: 2012-07-27 14:49:34.738


Author: trobertson@gbif.org
Created: 2012-07-27 14:07:54.502
Updated: 2012-07-27 14:09:36.158
        
Suggest not static, but simply reusable.  E.g. in the sub classes:

{code}
Iterator iter = openIteratorOnHBase();
OccurrenceResultReader r = new OccurrenceResultReader();
while (iter.hasNext()) {
  double latitude = r.readField(iter.next(), FieldNames.I_LATITUDE);
  // do awesome stuff
}
{code}