@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasFragmentId()) { hash = (37 * hash) + FRAGMENT_ID_FIELD_NUMBER; hash = (53 * hash) + getFragmentId().hashCode(); } if (hasToken()) { hash = (37 * hash) + TOKEN_FIELD_NUMBER; hash = (53 * hash) + getToken().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; }
@Override public void channelRead0(ChannelHandlerContext ctx, LlapOutputSocketInitMessage msg) { String id = msg.getFragmentId(); byte[] tokenBytes = msg.hasToken() ? msg.getToken().toByteArray() : null; try { registerReader(ctx, id, tokenBytes); } catch (Throwable t) { // Make sure we fail the channel if something goes wrong. // We internally handle all the "expected" exceptions, so log a lot of information here. failChannel(ctx, id, StringUtils.stringifyException(t)); } }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.LlapOutputSocketInitMessage)) { return super.equals(obj); } org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.LlapOutputSocketInitMessage other = (org.apache.hadoop.hive.llap.daemon.rpc.LlapDaemonProtocolProtos.LlapOutputSocketInitMessage) obj; boolean result = true; result = result && (hasFragmentId() == other.hasFragmentId()); if (hasFragmentId()) { result = result && getFragmentId() .equals(other.getFragmentId()); } result = result && (hasToken() == other.hasToken()); if (hasToken()) { result = result && getToken() .equals(other.getToken()); } result = result && getUnknownFields().equals(other.getUnknownFields()); return result; }
@Override public void channelRead0(ChannelHandlerContext ctx, LlapOutputSocketInitMessage msg) { String id = msg.getFragmentId(); byte[] tokenBytes = msg.hasToken() ? msg.getToken().toByteArray() : null; try { registerReader(ctx, id, tokenBytes); } catch (Throwable t) { // Make sure we fail the channel if something goes wrong. // We internally handle all the "expected" exceptions, so log a lot of information here. failChannel(ctx, id, StringUtils.stringifyException(t)); } }
/** * <code>required string fragment_id = 1;</code> */ public Builder clearFragmentId() { bitField0_ = (bitField0_ & ~0x00000001); fragmentId_ = getDefaultInstance().getFragmentId(); onChanged(); return this; } /**