org.apache.gora.dynamodb.query
Class DynamoDBResult<K,T extends org.apache.gora.persistency.Persistent>

java.lang.Object
  extended by org.apache.gora.query.ws.impl.ResultWSBase<K,T>
      extended by org.apache.gora.dynamodb.query.DynamoDBResult<K,T>
All Implemented Interfaces:
org.apache.gora.query.Result<K,T>

public class DynamoDBResult<K,T extends org.apache.gora.persistency.Persistent>
extends org.apache.gora.query.ws.impl.ResultWSBase<K,T>


Field Summary
static org.slf4j.Logger LOG
          Helper to write useful information into the logs
 
Fields inherited from class org.apache.gora.query.ws.impl.ResultWSBase
dataStore, key, limit, offset, persistent, query
 
Constructor Summary
DynamoDBResult(org.apache.gora.store.DataStore<K,T> dataStore, org.apache.gora.query.Query<K,T> query, List<T> objList)
          Constructor for the result set
 
Method Summary
 void close()
           
 float getProgress()
          Gets the items reading progress
protected  boolean nextInner()
          Gets the next item
 void setResultSet(List<T> objList)
          Sets the resulting objects within the class
 
Methods inherited from class org.apache.gora.query.ws.impl.ResultWSBase
clear, get, getDataStore, getKey, getKeyClass, getOffset, getOrCreatePersistent, getPersistentClass, getQuery, isLimitReached, next
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.slf4j.Logger LOG
Helper to write useful information into the logs

Constructor Detail

DynamoDBResult

public DynamoDBResult(org.apache.gora.store.DataStore<K,T> dataStore,
                      org.apache.gora.query.Query<K,T> query,
                      List<T> objList)
Constructor for the result set

Parameters:
dataStore - Data store used
query - Query used
objList - Objects obtained from querying
Method Detail

setResultSet

public void setResultSet(List<T> objList)
Sets the resulting objects within the class

Parameters:
objList -

getProgress

public float getProgress()
                  throws IOException,
                         InterruptedException
Gets the items reading progress

Throws:
IOException
InterruptedException

nextInner

protected boolean nextInner()
                     throws Exception
Gets the next item

Specified by:
nextInner in class org.apache.gora.query.ws.impl.ResultWSBase<K,T extends org.apache.gora.persistency.Persistent>
Throws:
Exception

close

public void close()
           throws IOException
Throws:
IOException


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