Package com.clickhouse.client
Class ClickHouseResponseSummary
java.lang.Object
com.clickhouse.client.ClickHouseResponseSummary
- All Implemented Interfaces:
Serializable
Summary of ClickHouse response.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProgress of a query.static classStatistics of a query. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionClickHouseResponseSummary(ClickHouseResponseSummary.Progress progress, ClickHouseResponseSummary.Statistics stats) Default constructor.protectedClickHouseResponseSummary(ClickHouseResponseSummary.Progress progress, ClickHouseResponseSummary.Statistics stats, boolean sealed) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ClickHouseResponseSummary summary) voidadd(ClickHouseResponseSummary.Progress progress) voidlongGets current progress of the query.longlonglongGets statistics of the query.longintlonglongbooleanisEmpty()voidseal()Seals the object so that it cannot be updated any more.toString()intupdate()Increases update counter.voidupdate(ClickHouseResponseSummary.Progress progress) Updates query progress.void
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ClickHouseResponseSummary
public ClickHouseResponseSummary(ClickHouseResponseSummary.Progress progress, ClickHouseResponseSummary.Statistics stats) Default constructor.- Parameters:
progress- progress which may or may not be nullstats- statistics which may or may not be null
-
ClickHouseResponseSummary
protected ClickHouseResponseSummary(ClickHouseResponseSummary.Progress progress, ClickHouseResponseSummary.Statistics stats, boolean sealed) Default constructor.- Parameters:
progress- progress which may or may not be nullstats- statistics which may or may not be nullsealed- whether the summary is sealed
-
-
Method Details
-
seal
public void seal()Seals the object so that it cannot be updated any more. -
update
public int update()Increases update counter.- Returns:
- increased update counter
-
update
Updates query progress.- Parameters:
progress- query progress, null value will be simply ignored
-
add
-
update
-
add
-
add
-
getProgress
Gets current progress of the query.- Returns:
- non-null progress
-
getStatistics
Gets statistics of the query.- Returns:
- non-null statistics
-
getReadRows
public long getReadRows() -
getReadBytes
public long getReadBytes() -
getTotalRowsToRead
public long getTotalRowsToRead() -
getWrittenRows
public long getWrittenRows() -
getWrittenBytes
public long getWrittenBytes() -
getUpdateCount
public int getUpdateCount() -
getElapsedTime
public long getElapsedTime() -
getResultRows
public long getResultRows() -
getQueryId
-
isEmpty
public boolean isEmpty() -
toString
-