/** * Translate external id to job id. * * @param id external id * @return job id */ static JobId getExternalIdAsJobId(ExternalId id) { return new JobId(new UUID(id.getPart1(), id.getPart2()).toString()); }
/** * @return internal QueryId corresponding to this attempt id */ public QueryId toQueryId() { final long part1 = externalId.getPart1(); final long part2 = externalId.getPart2(); return QueryId.newBuilder() .setPart1(part1) .setPart2(part2 + ((byte) attempt & MASK)) .build(); }
public Builder mergeFrom(com.dremio.exec.proto.UserBitShared.ExternalId other) { if (other == com.dremio.exec.proto.UserBitShared.ExternalId.getDefaultInstance()) return this; if (other.hasPart1()) { setPart1(other.getPart1()); } if (other.hasPart2()) { setPart2(other.getPart2()); } this.mergeUnknownFields(other.getUnknownFields()); return this; }
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.ExternalId message) throws java.io.IOException { if(message.hasPart1()) output.writeSFixed64(1, message.getPart1(), false); if(message.hasPart2()) output.writeSFixed64(2, message.getPart2(), false); } public boolean isInitialized(com.dremio.exec.proto.UserBitShared.ExternalId message)
public static QueryId toQueryId(final ExternalId externalId) { return QueryId.newBuilder() .setPart1(externalId.getPart1()) .setPart2(externalId.getPart2()) .build(); }