Package com.databricks.jdbc.api.impl
Class InlineJsonResult
- java.lang.Object
-
- com.databricks.jdbc.api.impl.InlineJsonResult
-
- All Implemented Interfaces:
IExecutionResult
public class InlineJsonResult extends Object implements IExecutionResult
-
-
Constructor Summary
Constructors Constructor Description InlineJsonResult(ResultManifest resultManifest, ResultData resultData)InlineJsonResult(Object[][] rows)InlineJsonResult(List<List<Object>> rows)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Closes the result set and releases any in-memory chunks or datalonggetChunkCount()longgetCurrentRow()Gets the current row position, starting with 0.ObjectgetObject(int columnIndex)Get the object for given column index.longgetRowCount()booleanhasNext()Returns if there is next row in the result setbooleannext()Moves the cursor to next row and returns true if this can be done
-
-
-
Constructor Detail
-
InlineJsonResult
public InlineJsonResult(ResultManifest resultManifest, ResultData resultData)
-
InlineJsonResult
public InlineJsonResult(Object[][] rows)
-
-
Method Detail
-
getObject
public Object getObject(int columnIndex) throws DatabricksSQLException
Description copied from interface:IExecutionResultGet the object for given column index. Here index starts with 0.- Specified by:
getObjectin interfaceIExecutionResult- Parameters:
columnIndex- index of column starting with 0- Returns:
- object at given index
- Throws:
DatabricksSQLException- if there is any error in getting object
-
getCurrentRow
public long getCurrentRow()
Description copied from interface:IExecutionResultGets the current row position, starting with 0.- Specified by:
getCurrentRowin interfaceIExecutionResult- Returns:
- the current row position
-
next
public boolean next()
Description copied from interface:IExecutionResultMoves the cursor to next row and returns true if this can be done- Specified by:
nextin interfaceIExecutionResult- Returns:
- true if cursor is moved at next row
-
hasNext
public boolean hasNext()
Description copied from interface:IExecutionResultReturns if there is next row in the result set- Specified by:
hasNextin interfaceIExecutionResult
-
close
public void close()
Description copied from interface:IExecutionResultCloses the result set and releases any in-memory chunks or data- Specified by:
closein interfaceIExecutionResult
-
getRowCount
public long getRowCount()
- Specified by:
getRowCountin interfaceIExecutionResult
-
getChunkCount
public long getChunkCount()
- Specified by:
getChunkCountin interfaceIExecutionResult
-
-