Examples of fromStream()


Examples of com.orientechnologies.orient.core.id.ORecordId.fromStream()

          throw new OSerializationException(
              "The index has been created with a previous version of OrientDB. Soft transitions between version is a featured supported since 0.9.25. In order to use it with this version of OrientDB you need to export and import your database. "
                  + protocolVersion + "<->" + CURRENT_PROTOCOL_VERSION);
      }

      rootRid.fromStream(stream.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));

      size = stream.getAsInteger();
      if (protocolVersion == -1)
        // @COMPATIBILITY BEFORE 0.9.25
        lastPageSize = stream.getAsShort();
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexDefinition.fromStream()

    final OIndexDefinition indexDefinition;
    final ODocument indexDefinitionDoc = (ODocument) ORecordSerializerJSON.INSTANCE.fromString(value, null, null);
    try {
      final Class<?> indexDefClass = Class.forName(className);
      indexDefinition = (OIndexDefinition) indexDefClass.getDeclaredConstructor().newInstance();
      indexDefinition.fromStream(indexDefinitionDoc);
    } catch (final ClassNotFoundException e) {
      throw new IOException("Error during deserialization of index definition", e);
    } catch (final NoSuchMethodException e) {
      throw new IOException("Error during deserialization of index definition", e);
    } catch (final InvocationTargetException e) {
View Full Code Here

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

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument(database);
        param.fromStream(paramBuffer);

        Map<String, Object> params = param.field("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
View Full Code Here

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

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
        param.fromStream(paramBuffer);

        final Map<String, Object> params = param.rawField("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
View Full Code Here

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

    synchronized (clusterConfiguration) {

      clusterConfiguration.reset();

      // UPDATE IT
      clusterConfiguration.fromStream(iContent);

      if (OLogManager.instance().isInfoEnabled())
        OLogManager.instance().info(this, "Received new cluster configuration: %s", clusterConfiguration.toJSON(""));
    }
  }
View Full Code Here

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

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
        param.fromStream(paramBuffer);

        Map<String, Object> params = param.rawField("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
View Full Code Here

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

    synchronized (clusterConfiguration) {

      clusterConfiguration.reset();

      // UPDATE IT
      clusterConfiguration.fromStream(iContent);

      if (OLogManager.instance().isInfoEnabled())
        OLogManager.instance().info(this, "Received new cluster configuration: %s", clusterConfiguration.toJSON(""));
    }
  }
View Full Code Here

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

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
        param.fromStream(paramBuffer);

        Map<String, Object> params = param.field("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
View Full Code Here

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

            if (buffer1.recordType == ODocument.RECORD_TYPE) {
              // DOCUMENT: TRY TO INSTANTIATE AND COMPARE
              doc1.reset();
              doc1.fromStream(buffer1.buffer);
              doc2.reset();
              doc2.fromStream(buffer2.buffer);

              if (!doc1.hasSameContentOf(doc2)) {
                listener.onMessage("\n- KO: RID=" + clusterId + ":" + i + " document content is different");
                listener.onMessage("\n--- REC1: " + new String(buffer1.buffer));
                listener.onMessage("\n--- REC2: " + new String(buffer2.buffer));
View Full Code Here

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

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument(database);
        param.fromStream(paramBuffer);

        Map<String, Object> params = param.field("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
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.