Package com.zentadata.client
Class ResultSet
- java.lang.Object
-
- com.zentadata.client.ResultSet
-
public class ResultSet extends Object
The main class to work with a physical data representation of DataFrame.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CursorgetCursor()Iterator<Map<String,Object>>getIterator()<T> Iterator<T>getIterator(Class<T> clas)Typed version ofgetIterator()methodList<Map<String,Object>>getPayload()<T> List<T>getPayload(Class<T> clas)Typed version ofgetPayload()method.voidshow()This method prints first 5000 rows in a human-readable format to the standard output.
-
-
-
Field Detail
-
cursor
protected final Cursor cursor
-
-
Method Detail
-
getCursor
protected Cursor getCursor()
-
show
public void show()
This method prints first 5000 rows in a human-readable format to the standard output.
-
getPayload
public List<Map<String,Object>> getPayload()
Returns in-memoryListcontaining first 5000 rows of underlyingDataFrame. Each row is represented asMap<String, Object>.
Note: To avoid OOM errors on client side, list size is limited by 5000 rows. If you need to get all rows, consider streaming approach withgetIterator()method.- Returns:
Listcontaining first 5000 rows of underlyingDataFrame.
-
getPayload
public <T> List<T> getPayload(Class<T> clas)
Typed version ofgetPayload()method.
-
-