This project has retired. For details please refer to its Attic page.
HBaseResult (Apache Gora 0.2 API)

org.apache.gora.hbase.query
Class HBaseResult<K,T extends Persistent>

java.lang.Object
  extended by org.apache.gora.query.impl.ResultBase<K,T>
      extended by org.apache.gora.hbase.query.HBaseResult<K,T>
All Implemented Interfaces:
Closeable, Result<K,T>
Direct Known Subclasses:
HBaseGetResult, HBaseScannerResult

public abstract class HBaseResult<K,T extends Persistent>
extends ResultBase<K,T>

Base class for Result implementations for HBase.


Field Summary
 
Fields inherited from class org.apache.gora.query.impl.ResultBase
dataStore, key, limit, offset, persistent, query
 
Constructor Summary
HBaseResult(HBaseStore<K,T> dataStore, Query<K,T> query)
           
 
Method Summary
 HBaseStore<K,T> getDataStore()
          Returns the DataStore, that this Result is associated with.
protected  void readNext(org.apache.hadoop.hbase.client.Result result)
           
 
Methods inherited from class org.apache.gora.query.impl.ResultBase
clear, get, getKey, getKeyClass, getOffset, getOrCreatePersistent, getPersistentClass, getQuery, isLimitReached, next, nextInner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.gora.query.Result
close, getProgress
 

Constructor Detail

HBaseResult

public HBaseResult(HBaseStore<K,T> dataStore,
                   Query<K,T> query)
Method Detail

getDataStore

public HBaseStore<K,T> getDataStore()
Description copied from interface: Result
Returns the DataStore, that this Result is associated with.

Specified by:
getDataStore in interface Result<K,T extends Persistent>
Overrides:
getDataStore in class ResultBase<K,T extends Persistent>
Returns:
the DataStore of the Result

readNext

protected void readNext(org.apache.hadoop.hbase.client.Result result)
                 throws IOException
Throws:
IOException


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.