Examples of OMemoryInputStream


Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    final long timer = OProfiler.getInstance().startChrono();

    final ORID rootRid = new ORecordId();

    try {
      final OMemoryInputStream stream = new OMemoryInputStream(iStream);

      byte protocolVersion = stream.peek();
      if (protocolVersion != -1) {
        // @COMPATIBILITY BEFORE 0.9.25
        stream.getAsByte();
        if (protocolVersion != CURRENT_PROTOCOL_VERSION)
          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();
      else
        lastPageSize = stream.getAsInteger();

      serializerFromStream(stream);

      // LOAD THE ROOT OBJECT AFTER ALL
      if (rootRid.isValid())
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    this.text = iText;
    return this;
  }

  public OSerializableStream fromStream(byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument(database);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

  public String toString() {
    return "OSQLQuery [text=" + text + "]";
  }

  public OSerializableStream fromStream(final byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();
      limit = buffer.getAsInteger();
      beginRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      endRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      setFetchPlan(buffer.getAsString());

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

  public String toString() {
    return "OSQLQuery [text=" + text + "]";
  }

  public OSerializableStream fromStream(final byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();
      limit = buffer.getAsInteger();
      beginRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      endRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      setFetchPlan(buffer.getAsString());

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

  public String toString() {
    return "OSQLQuery [text=" + text + "]";
  }

  public OSerializableStream fromStream(final byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();
      limit = buffer.getAsInteger();
      beginRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      endRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      fetchPlan = buffer.getAsString();
      if (fetchPlan.length() == 0)
        fetchPlan = null;

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    final long timer = OProfiler.getInstance().startChrono();

    final ORID rootRid = new ORecordId();

    try {
      final OMemoryInputStream stream = new OMemoryInputStream(iStream);

      byte protocolVersion = stream.peek();
      if (protocolVersion != -1) {
        // @COMPATIBILITY BEFORE 0.9.25
        stream.getAsByte();
        if (protocolVersion != CURRENT_PROTOCOL_VERSION)
          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();
      else
        lastPageSize = stream.getAsInteger();

      serializerFromStream(stream);

      // LOAD THE ROOT OBJECT AFTER ALL
      if (rootRid.isValid())
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    final long timer = OProfiler.getInstance().startChrono();

    final ORID rootRid = new ORecordId();

    try {
      final OMemoryInputStream stream = new OMemoryInputStream(iStream);

      byte protocolVersion = stream.peek();
      if (protocolVersion != -1) {
        // @COMPATIBILITY BEFORE 0.9.25
        stream.getAsByte();
        if (protocolVersion != CURRENT_PROTOCOL_VERSION)
          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();
      else
        lastPageSize = stream.getAsInteger();

      serializerFromStream(stream);

      // LOAD THE ROOT OBJECT AFTER ALL
      if (rootRid.isValid())
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    this.text = iText;
    return this;
  }

  public OSerializableStream fromStream(byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument(database);
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

  public String toString() {
    return "OSQLQuery [text=" + text + "]";
  }

  public OSerializableStream fromStream(final byte[] iStream) throws OSerializationException {
    final OMemoryInputStream buffer = new OMemoryInputStream(iStream);
    try {
      text = buffer.getAsString();
      limit = buffer.getAsInteger();
      beginRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      endRange = new ORecordId().fromStream(buffer.getAsByteArrayFixed(ORecordId.PERSISTENT_SIZE));
      setFetchPlan(buffer.getAsString());

      byte[] paramBuffer = buffer.getAsByteArray();

      if (paramBuffer.length == 0)
        parameters = null;
      else {
        final ODocument param = new ODocument();
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.OMemoryInputStream

    final long timer = OProfiler.getInstance().startChrono();

    final ORID rootRid = new ORecordId();

    try {
      final OMemoryInputStream stream = new OMemoryInputStream(iStream);

      byte protocolVersion = stream.peek();
      if (protocolVersion != -1) {
        // @COMPATIBILITY BEFORE 0.9.25
        stream.getAsByte();
        if (protocolVersion != CURRENT_PROTOCOL_VERSION)
          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();
      else
        lastPageSize = stream.getAsInteger();

      serializerFromStream(stream);

      // LOAD THE ROOT OBJECT AFTER ALL
      if (rootRid.isValid())
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.