Tabnine Logo
BsonDocumentBuilder.appendNull
Code IndexAdd Tabnine to your IDE (free)

How to use
appendNull
method
in
com.eightkdata.mongowp.utils.BsonDocumentBuilder

Best Java code snippets using com.eightkdata.mongowp.utils.BsonDocumentBuilder.appendNull (Showing top 13 results out of 315)

origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(ObjectIdField field, BsonObjectId value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), value);
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public <T> BsonDocumentBuilder append(BsonField<T, BsonValue<T>> field, T value,
  Function<T, BsonValue<T>> translator) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), translator.apply(value));
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(DocField field, BsonDocument value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), value);
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(ArrayField field, BsonArray value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), value);
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(TimestampField field, BsonTimestamp value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(
   field.getFieldName(),
   value
 );
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(StringField field, String value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), newString(value));
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(TimestampField field, OpTime value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(
   field.getFieldName(),
   value.getTimestamp()
 );
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(HostAndPortField field, String value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), newString(value));
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder appendNumber(NumberField<?> field, Number value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), toBsonNumber(value));
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(DateTimeField field, Instant value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), new InstantBsonDateTime(value));
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(DocField field, BsonDocumentBuilder value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), value.build());
 return this;
}
origin: com.8kdata.mongowp/mongowp-core

public BsonDocumentBuilder append(HostAndPortField field, HostAndPort value) {
 Preconditions.checkState(!built);
 if (value == null) {
  return appendNull(field);
 }
 map.put(field.getFieldName(), newString(value.toString()));
 return this;
}
origin: com.8kdata.mongowp.server/mongo-server-api

protected void marshall(BsonDocumentBuilder builder) {
 if (errorDesc == null) {
  assert error.equals(ErrorCode.OK);
  builder.appendNull(ERR_FIELD_NAME);
 } else {
  builder.append(ERR_FIELD_NAME, errorDesc);
  builder.append(CODE_FIELD_NAME, error.getErrorCode());
 }
 builder.append(N_FIELD_NAME, getN());
 if (replInfo != null) {
  replInfo.marshall(builder);
 }
 if (shardInfo != null) {
  shardInfo.marshall(builder);
 }
}
com.eightkdata.mongowp.utilsBsonDocumentBuilderappendNull

Popular methods of BsonDocumentBuilder

  • <init>
  • build
  • append
  • appendUnsafe
  • toBsonNumber

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Vim plugins
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