/** * <code>optional .exec.shared.QueryId id = 1;</code> */ public Builder setId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId id = 1;</code> */ public Builder setId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId parent_query_id = 4;</code> */ public Builder setParentQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (parentQueryIdBuilder_ == null) { parentQueryId_ = builderForValue.build(); onChanged(); } else { parentQueryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
public static QueryId getQueryIdFromString(final String queryId) { final UUID uuid = UUID.fromString(queryId); return QueryId.newBuilder().setPart1(uuid.getMostSignificantBits()).setPart2(uuid.getLeastSignificantBits()).build(); }
/** * Helper method to generate QueryId * @return generated QueryId */ private static QueryId queryIdGenerator() { ThreadLocalRandom r = ThreadLocalRandom.current(); // create a new queryid where the first four bytes are a growing time (each new value comes earlier in sequence). Last 12 bytes are random. final long time = (int) (System.currentTimeMillis()/1000); final long p1 = ((Integer.MAX_VALUE - time) << 32) + r.nextInt(); final long p2 = r.nextLong(); final QueryId id = QueryId.newBuilder().setPart1(p1).setPart2(p2).build(); return id; }
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId parent_query_id = 4;</code> */ public Builder setParentQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (parentQueryIdBuilder_ == null) { parentQueryId_ = builderForValue.build(); onChanged(); } else { parentQueryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 2;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**
/** * <code>optional .exec.shared.QueryId query_id = 1;</code> */ public Builder setQueryId( org.apache.drill.exec.proto.UserBitShared.QueryId.Builder builderForValue) { if (queryIdBuilder_ == null) { queryId_ = builderForValue.build(); onChanged(); } else { queryIdBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /**