Examples of rawField()


Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

    if (iObjHandler == null && ODatabaseRecordThreadLocal.INSTANCE.isDefined())
      iObjHandler = ODatabaseRecordThreadLocal.INSTANCE.get();

    // MARSHALL ALL THE FIELDS OR DELTA IF TRACKING IS ENABLED
    for (String fieldName : fieldNames) {
      Object fieldValue = record.rawField(fieldName);
      if (i > 0)
        iOutput.append(OStringSerializerHelper.RECORD_SEPARATOR);

      // SEARCH FOR A CONFIGURED PROPERTY
      prop = record.getSchemaClass() != null ? record.getSchemaClass().getProperty(fieldName) : null;
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

        return badRequest("the supplied id appears invalid (possible Sql Injection Attack detected)");
      } catch (InvalidModelException e) {
        return badRequest("The id " + id + " is not a file");
      }
      if (doc==null) return notFound(id + " file was not found");
      String ret=OJSONWriter.writeValue(doc.rawField(FileService.DATA_FIELD_NAME));
      return ok(ret);
    }
   
  @With ({UserOrAnonymousCredentialsFilter.class,ConnectToDBFilter.class,ExtractQueryParameters.class})
  public static Result getAllFile() throws IOException{
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

                       final List<Object> resultSet = (List<Object>) entry.getValue();

                       for (Object r : resultSet) {
                         if (r instanceof ODocument) {
                           final ODocument d = (ODocument) r;
                           toMerge.add(d.rawField(p.getKey()));
                         }
                       }

                     }
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

      return Collections.emptyMap();

    final ODocument param = new ODocument();
    param.fromStream(paramBuffer);
    param.setFieldType("params", OType.EMBEDDEDMAP);
    final Map<String, Object> params = param.rawField("params");

    final Map<Object, Object> result = new HashMap<Object, Object>();
    for (Entry<String, Object> p : params.entrySet()) {
      if (Character.isDigit(p.getKey().charAt(0)))
        result.put(Integer.parseInt(p.getKey()), p.getValue());
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

    if (doc == null)
      return null;

    if (settings != null && settings.keepInMemoryReferences)
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_OUT);
    else
      return doc.field(OrientBaseGraph.CONNECTION_OUT);
  }

  /**
 
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

    if (doc == null)
      return null;

    if (settings != null && settings.keepInMemoryReferences)
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_IN);
    else
      return doc.field(OrientBaseGraph.CONNECTION_IN);
  }

  /**
 
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

    if (doc == null)
      return null;

    if (graph.isKeepInMemoryReferences())
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_OUT);
    else
      return doc.field(OrientBaseGraph.CONNECTION_OUT);
  }

  public OIdentifiable getInVertex() {
View Full Code Here

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()

    if (doc == null)
      return null;

    if (graph.isKeepInMemoryReferences())
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_IN);
    else
      return doc.field(OrientBaseGraph.CONNECTION_IN);
  }

  @Override
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.rawField()

    private void testRawField(XContentType type) throws IOException {
        XContentBuilder builder = XContentFactory.contentBuilder(type);
        builder.startObject();
        builder.field("field1", "value1");
        builder.rawField("_source", XContentFactory.unCachedContentBuilder(type).startObject().field("s_field", "s_value").endObject().copiedBytes());
        builder.field("field2", "value2");
        builder.endObject();

        XContentParser parser = XContentFactory.xContent(type).createParser(builder.copiedBytes());
        assertThat(parser.nextToken(), equalTo(XContentParser.Token.START_OBJECT));
View Full Code Here

Examples of org.elasticsearch.common.xcontent.XContentBuilder.rawField()

    public NettyInteractiveResponse(String type, XContentBuilder builder) throws IOException {
        this.type = type;
        XContentBuilder responseBuilder = jsonBuilder()
                .startObject().field("success", true).field("type", type);
        if (builder != null) {
            responseBuilder.rawField("data", builder.bytes());
        }
        responseBuilder.endObject();
        this.response = new TextWebSocketFrame(responseBuilder.string());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.