org.apache.gora.dynamodb.query
Class DynamoDBResult<K,T extends org.apache.gora.persistency.Persistent>
java.lang.Object
org.apache.gora.query.ws.impl.ResultWSBase<K,T>
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 |
| 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 |
LOG
public static final org.slf4j.Logger LOG
- Helper to write useful information into the logs
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 usedquery - Query usedobjList - Objects obtained from querying
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.