MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / hashCode

Method hashCode

src/stats/QueryStats.java:282–285  ·  view source on GitHub ↗

Returns the hash based on the remote address and the query

()

Source from the content-addressed store, hash-verified

280 * Returns the hash based on the remote address and the query
281 */
282 @Override
283 public int hashCode() {
284 return remote_address.hashCode() ^ query.hashCode();
285 }
286
287 /**
288 * Equals is based solely on the endpoint and the original query

Callers 4

testHashCodeandEqualsMethod · 0.95
QueryStatsMethod · 0.95
markSerializedMethod · 0.95

Calls

no outgoing calls

Tested by 2

testHashCodeandEqualsMethod · 0.76