@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.MutateRowsResponse)) { return super.equals(obj); } com.google.bigtable.v2.MutateRowsResponse other = (com.google.bigtable.v2.MutateRowsResponse) obj; boolean result = true; result = result && getEntriesList().equals(other.getEntriesList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
for (Entry entry : response.getEntriesList()) { if (entry.getStatus().getCode() == Code.OK_VALUE) { continue;
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.MutateRowsResponse)) { return super.equals(obj); } com.google.bigtable.v2.MutateRowsResponse other = (com.google.bigtable.v2.MutateRowsResponse) obj; boolean result = true; result = result && getEntriesList() .equals(other.getEntriesList()); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.bigtable.v2.MutateRowsResponse)) { return super.equals(obj); } com.google.bigtable.v2.MutateRowsResponse other = (com.google.bigtable.v2.MutateRowsResponse) obj; boolean result = true; result = result && getEntriesList().equals(other.getEntriesList()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * Adds the content of the message to the {@link #results}. */ public void onMessage(MutateRowsResponse message) { for (Entry entry : message.getEntriesList()) { int index = (int) entry.getIndex(); // Sanity check to make sure that the index returned from the server is valid. if (index >= mapToOriginalIndex.length || index < 0) { messageIsInvalid = true; break; } // Set the result. results[mapToOriginalIndex[index]] = entry.getStatus(); } }
@VisibleForTesting synchronized void handleResult(List<MutateRowsResponse> results) { if (futures.isEmpty()) { LOG.warn("Got duplicate responses for bulk mutation."); setComplete(); return; } List<MutateRowsResponse.Entry> entries = new ArrayList<>(); for (MutateRowsResponse response : results) { entries.addAll(response.getEntriesList()); } if (entries.isEmpty()) { setFailure(io.grpc.Status.INTERNAL .withDescription("No MutateRowsResponses entries were found.").asRuntimeException()); return; } try { handleEntries(entries); handleExtraFutures(entries); setComplete(); } catch (Throwable e) { setFailure(e); } }
for (Entry entry : response.getEntriesList()) { if (entry.getStatus().getCode() == Code.OK_VALUE) { continue;