longtotaLatency=0;ServerStream<Row>stream=bigtableDataClient.readRows(query);for(Rowrow:stream){timer.start();// Do something with rowtimer.stop();totalLatency+=timer.elapsed();}
非同期
client.readRowsAsync(query,newResponseObserver<Row>(){@OverridepublicvoidonStart(StreamControllerstreamController){}@OverridepublicvoidonResponse(Rowrow){timer.start();// Do something with the rowtimer.stop();totalLatency+=timer.elapsed();}@OverridepublicvoidonError(Throwablethrowable){// Do something with the error}@OverridepublicvoidonComplete(){}});
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-08-17 UTC。"],[[["\u003cp\u003eClient-side metrics, available for Java Bigtable clients, provide detailed insights into operation performance and are used alongside server-side metrics for comprehensive debugging.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eoperation_latencies\u003c/code\u003e metric measures the end-to-end latency of Bigtable operations, including retries, while \u003ccode\u003eattempt_latencies\u003c/code\u003e measures the latency of individual RPC attempts.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRetry_count\u003c/code\u003e tracks the number of attempts an operation requires, while \u003ccode\u003eapplication_blocking_latencies\u003c/code\u003e gauges the time an application takes to process a response.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFirst_response_latencies\u003c/code\u003e measures the time it takes to receive the first response row, and \u003ccode\u003eserver_latencies\u003c/code\u003e measures the latency between when Google's frontend receives a request and when it sends the first response byte.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnectivity_error_count\u003c/code\u003e tracks the number of requests that fail to reach Google's network, and \u003ccode\u003eclient_blocking_latencies\u003c/code\u003e measures delays caused by client-side request blocking or queuing.\u003c/p\u003e\n"]]],[],null,[]]