Tabnine Logo
Projection.toJson
Code IndexAdd Tabnine to your IDE (free)

How to use
toJson
method
in
com.redhat.lightblue.query.Projection

Best Java code snippets using com.redhat.lightblue.query.Projection.toJson (Showing top 20 results out of 315)

origin: com.redhat.lightblue/metadata

@Override
public void putProjection(JsonNode object,String name,Projection p) {
  if(p!=null)
    ((ObjectNode)object).put(name,p.toJson());
}

origin: lightblue-platform/lightblue-core

@Override
public void putProjection(JsonNode object, String name, Projection p) {
  if (p != null) {
    ((ObjectNode) object).set(name, p.toJson());
  }
}
origin: com.redhat.lightblue/lightblue-core-metadata

@Override
public void putProjection(JsonNode object, String name, Projection p) {
  if (p != null) {
    ((ObjectNode) object).set(name, p.toJson());
  }
}
origin: com.redhat.lightblue.mongo/lightblue-mongo

@Override
public void putProjection(Object object, String name, Projection p) {
  if (p != null) {
    ((BSONObject) object).put(name, p.toJson().toString());
  }
}
origin: com.redhat.lightblue/crud

/**
 * Returns JSON representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  return node;
}
origin: com.redhat.lightblue/crud

/**
 * Returns json representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  node.put("upsert", upsert);
  return node;
}
origin: com.redhat.lightblue.mongo/lightblue-mongo-metadata

@Override
public void putProjection(BSONObject object, String name, Projection p) {
  if (p != null) {
    object.put(name, p.toJson().toString());
  }
}
origin: com.redhat.lightblue/lightblue-core-crud

@Override
public JsonNode explain(ExecutionContext ctx) {
  ObjectNode o = JsonNodeFactory.instance.objectNode();
  o.set("project", projection.toJson());
  o.set("source", source.getStep().explain(ctx));
  return o;
}
origin: lightblue-platform/lightblue-core

@Override
public JsonNode toJson() {
  ObjectNode o = JsonNodeFactory.instance.objectNode();
  o.set("project", projection.toJson());
  o.set("source", source.getStep().toJson());
  return o;
}
origin: com.redhat.lightblue/lightblue-core-crud

@Override
public JsonNode toJson() {
  ObjectNode o = JsonNodeFactory.instance.objectNode();
  o.set("project", projection.toJson());
  o.set("source", source.getStep().toJson());
  return o;
}
origin: lightblue-platform/lightblue-core

@Override
public JsonNode explain(ExecutionContext ctx) {
  ObjectNode o = JsonNodeFactory.instance.objectNode();
  o.set("project", projection.toJson());
  o.set("source", source.getStep().explain(ctx));
  return o;
}
origin: com.redhat.lightblue/lightblue-core-query-api

@Override
public JsonNode toJson() {
  ObjectNode node = getFactory().objectNode().
      put("field", field.toString()).
      put("include", include);
  node.set("projection", project.toJson());
  if (sort != null) {
    node.set("sort", sort.toJson());
  }
  return node;
}
origin: com.redhat.lightblue/lightblue-core-query-api

@Override
public JsonNode toJson() {
  ArrayNode arr = getFactory().arrayNode();
  for (Projection x : items) {
    arr.add(x.toJson());
  }
  return arr;
}
origin: lightblue-platform/lightblue-core

@Override
public JsonNode toJson() {
  ObjectNode node = getFactory().objectNode().
      put("field", field.toString()).
      put("include", include);
  node.set("projection", project.toJson());
  if (sort != null) {
    node.set("sort", sort.toJson());
  }
  return node;
}
origin: lightblue-platform/lightblue-core

@Override
public JsonNode toJson() {
  ArrayNode arr = getFactory().arrayNode();
  for (Projection x : items) {
    arr.add(x.toJson());
  }
  return arr;
}
origin: com.redhat.lightblue.mongo/mongo-metadata

@Override
public void putProjection(BSONObject object,String name,Projection p) {
  if(p!=null)
    object.put(name,toBson(p.toJson()));
}
origin: com.redhat.lightblue/lightblue-core-crud

/**
 * Returns JSON representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  WithRange.toJson(this, getFactory(), node);
  return node;
}
origin: lightblue-platform/lightblue-core

/**
 * Returns JSON representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  WithRange.toJson(this, getFactory(), node);
  return node;
}
origin: com.redhat.lightblue/lightblue-core-crud

/**
 * Returns json representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  node.put("upsert", upsert);
  WithIfCurrent.toJson(this,node);
  WithRange.toJson(this, getFactory(), node);
  return node;
}
origin: lightblue-platform/lightblue-core

/**
 * Returns json representation of this
 */
@Override
public JsonNode toJson() {
  ObjectNode node = (ObjectNode) super.toJson();
  if (returnFields != null) {
    node.set("projection", returnFields.toJson());
  }
  node.put("upsert", upsert);
  WithIfCurrent.toJson(this,node);
  WithRange.toJson(this, getFactory(), node);
  return node;
}
com.redhat.lightblue.queryProjectiontoJson

Popular methods of Projection

  • fromJson
  • getFieldInclusion
    Determine if the field is explicitly included/excluded, implicitly included, or the projection does
  • isFieldRequiredToEvaluateProjection
    Returns true if the field is needed to evaluate the projection
  • add
    Adds two projections and returns a new projection containing both. Any projection can be null. If th
  • toString
  • fieldAncestorOfPattern
    If the field is an ancestor of the pattern, and if inclusion is true, returns true. Otherwise, retur
  • fieldMatchesPattern
    Returns whether to include/exclude the field based on whether the field matches the pattern
  • impliedInclusion
    Returns if the field should be included based on the recursive pattern.
  • isFieldIncluded
    Returns if the field should be included based on the pattern given.
  • toMask
    If a path includes array indexes, change the indexes into ANY

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • JTextField (javax.swing)
  • 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