Package com.clickhouse.client.api.query
Class Records
java.lang.Object
com.clickhouse.client.api.query.Records
- All Implemented Interfaces:
AutoCloseable,Iterable<GenericRecord>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the metrics of this operation.longAlias forServerMetrics.NUM_BYTES_READlongAlias forServerMetrics.NUM_ROWS_READlongAlias forServerMetrics.RESULT_ROWSlongAlias forServerMetrics.ELAPSED_TIMElongAlias forServerMetrics.NUM_BYTES_WRITTENlongAlias forServerMetrics.NUM_ROWS_WRITTENiterator()
-
Constructor Details
-
Records
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<GenericRecord>
-
spliterator
- Specified by:
spliteratorin interfaceIterable<GenericRecord>
-
getMetrics
Returns the metrics of this operation.- Returns:
- metrics of this operation
-
getReadRows
public long getReadRows()Alias forServerMetrics.NUM_ROWS_READ- Returns:
- number of rows read by server from the storage
-
getReadBytes
public long getReadBytes()Alias forServerMetrics.NUM_BYTES_READ- Returns:
- number of bytes read by server from the storage
-
getWrittenRows
public long getWrittenRows()Alias forServerMetrics.NUM_ROWS_WRITTEN- Returns:
- number of rows written by server to the storage
-
getWrittenBytes
public long getWrittenBytes()Alias forServerMetrics.NUM_BYTES_WRITTEN- Returns:
- number of bytes written by server to the storage
-
getServerTime
public long getServerTime()Alias forServerMetrics.ELAPSED_TIME- Returns:
- elapsed time in nanoseconds
-
getResultRows
public long getResultRows()Alias forServerMetrics.RESULT_ROWS- Returns:
- number of returned rows
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-