Tabnine Logo
UserBitShared$QueryId.newBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
newBuilder
method
in
com.dremio.exec.proto.UserBitShared$QueryId

Best Java code snippets using com.dremio.exec.proto.UserBitShared$QueryId.newBuilder (Showing top 20 results out of 315)

origin: dremio/dremio-oss

public static QueryId getQueryIdFromString(final String queryId) {
 final UUID uuid = UUID.fromString(queryId);
 return QueryId.newBuilder().setPart1(uuid.getMostSignificantBits()).setPart2(uuid.getLeastSignificantBits()).build();
}
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId id = 1;</code>
 */
public Builder mergeId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (idBuilder_ == null) {
  if (((bitField0_ & 0x00000001) == 0x00000001) &&
    id_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   id_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(id_).mergeFrom(value).buildPartial();
  } else {
   id_ = value;
  }
  onChanged();
 } else {
  idBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000001;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId prepare_id = 24;</code>
 */
public Builder mergePrepareId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (prepareIdBuilder_ == null) {
  if (((bitField0_ & 0x00080000) == 0x00080000) &&
    prepareId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   prepareId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(prepareId_).mergeFrom(value).buildPartial();
  } else {
   prepareId_ = value;
  }
  onChanged();
 } else {
  prepareIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00080000;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId prepare_id = 3;</code>
 */
public Builder mergePrepareId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (prepareIdBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    prepareId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   prepareId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(prepareId_).mergeFrom(value).buildPartial();
  } else {
   prepareId_ = value;
  }
  onChanged();
 } else {
  prepareIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 1;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000001) == 0x00000001) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000001;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 1;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000001) == 0x00000001) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000001;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 1;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000001) == 0x00000001) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000001;
 return this;
}
/**
origin: dremio/dremio-oss

public void mergeFrom(io.protostuff.Input input, com.dremio.exec.proto.UserProtos.RequestResults.Builder builder) throws java.io.IOException
{
  for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
  {
    switch(number)
    {
      case 0:
        return;
      case 1:
        builder.setQueryId(input.mergeObject(com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(), com.dremio.exec.proto.SchemaUserBitShared.QueryId.MERGE));
        break;
      case 2:
        builder.setMaximumResponses(input.readInt32());
        break;
      default:
        input.handleUnknownField(number, this);
    }
  }
}
public boolean isInitialized(com.dremio.exec.proto.UserProtos.RequestResults.Builder builder)
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 13;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000008) == 0x00000008) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000008;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 13;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000008) == 0x00000008) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000008;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 2;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000002) == 0x00000002) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000002;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 3;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000004) == 0x00000004) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000004;
 return this;
}
/**
origin: dremio/dremio-oss

/**
 * <code>optional .exec.shared.QueryId query_id = 2;</code>
 */
public Builder mergeQueryId(com.dremio.exec.proto.UserBitShared.QueryId value) {
 if (queryIdBuilder_ == null) {
  if (((bitField0_ & 0x00000002) == 0x00000002) &&
    queryId_ != com.dremio.exec.proto.UserBitShared.QueryId.getDefaultInstance()) {
   queryId_ =
    com.dremio.exec.proto.UserBitShared.QueryId.newBuilder(queryId_).mergeFrom(value).buildPartial();
  } else {
   queryId_ = value;
  }
  onChanged();
 } else {
  queryIdBuilder_.mergeFrom(value);
 }
 bitField0_ |= 0x00000002;
 return this;
}
/**
origin: dremio/dremio-oss

public Builder toBuilder() { return newBuilder(this); }
origin: dremio/dremio-oss

public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.dremio.exec.proto.UserBitShared.QueryId prototype) {
origin: dremio/dremio-oss

public static Builder newBuilder(com.dremio.exec.proto.UserBitShared.QueryId prototype) {
 return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
origin: dremio/dremio-oss

private QueryContext newQueryContext(SqlQuery query) {
 try (TimedBlock b = time("initParser")) {
  QueryId queryId = QueryId.newBuilder().setPart1(ID_MAJOR).setPart2(ID_MINOR.incrementAndGet()).build();
  UserSession session = UserSession.Builder.newBuilder()
    .withCredentials(UserCredentials.newBuilder()
      .setUserName(query.getUsername())
      .build())
    .withUserProperties(UserProperties.getDefaultInstance())
    .withOptionManager(sabotContext.getOptionManager())
    .build();
  return new QueryContext(session, sabotContext, queryId);
 }
}
origin: dremio/dremio-oss

public com.dremio.exec.proto.UserBitShared.QueryId.Builder newMessage()
{
  return com.dremio.exec.proto.UserBitShared.QueryId.newBuilder();
}
public java.lang.String getFieldName(int number)
origin: dremio/dremio-oss

public static QueryId toQueryId(final ExternalId externalId) {
 return QueryId.newBuilder()
     .setPart1(externalId.getPart1())
     .setPart2(externalId.getPart2())
     .build();
}
origin: dremio/dremio-oss

/**
 * @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();
}
com.dremio.exec.protoUserBitShared$QueryIdnewBuilder

Popular methods of UserBitShared$QueryId

  • getDefaultInstance
  • getPart2
    optional sfixed64 part2 = 2;
  • getPart1
    optional sfixed64 part1 = 1;
  • equals
  • <init>
  • getSerializedSize
  • getUnknownFields
  • hasPart1
    optional sfixed64 part1 = 1;
  • hasPart2
    optional sfixed64 part2 = 2;
  • hashCode
  • initFields
  • isInitialized
  • initFields,
  • isInitialized,
  • makeExtensionsImmutable,
  • parseUnknownField,
  • toBuilder

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JFrame (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now