Examples of ORecordSerializerSchemaAware2CSV


Examples of com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV

  private ORecordSerializer                      defaultRecordFormat;

  public ORecordSerializerFactory() {
    defaultRecordFormat = new ORecordSerializerRaw();

    implementations.put(ORecordSerializerSchemaAware2CSV.NAME, new ORecordSerializerSchemaAware2CSV());
    implementations.put(ORecordSerializerJSON.NAME, new ORecordSerializerJSON());
    implementations.put(ORecordSerializerRaw.NAME, defaultRecordFormat);
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV

  public ODocumentSchemafullSerializationTest(ORecordSerializer serializer) {
    this.serializer = serializer;
  }

  public ODocumentSchemafullSerializationTest() {
    this(new ORecordSerializerSchemaAware2CSV());
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV

  public ODocumentSchemalessSerializationTest(ORecordSerializer serializer) {
    this.serializer = serializer;
  }

  public ODocumentSchemalessSerializationTest() {
    this(new ORecordSerializerSchemaAware2CSV());
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerSchemaAware2CSV

              final ORecordId identity = new ORecordId(clusterId, position.clusterPosition);
              final ORawBuffer record = storage.readRecord(identity, null, true, null, false, OStorage.LOCKING_STRATEGY.DEFAULT)
                  .getResult();

              if (record.recordType == ODocument.RECORD_TYPE) {
                final ORecordSerializerSchemaAware2CSV serializer = (ORecordSerializerSchemaAware2CSV) ORecordSerializerFactory
                    .instance().getFormat(ORecordSerializerSchemaAware2CSV.NAME);

                if (serializer.getClassName(OBinaryProtocol.bytes2string(record.buffer)).equalsIgnoreCase(name)) {
                  final ODocument document = new ODocument();
                  document.setLazyLoad(false);
                  document.fromStream(record.buffer);
                  document.getRecordVersion().copyFrom(record.version);
                  ORecordInternal.setIdentity(document, identity);
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.