Package com.orientechnologies.orient.core.intent

Examples of com.orientechnologies.orient.core.intent.OIntentMassiveInsert


    //database = new OGraphDatabase(System.getProperty("url")).create();

    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    OClass cl = database.createVertexType("Person", "OGraphVertex");
    cl.createProperty("id", OType.LONG);
    cl.createProperty("name", OType.STRING);
    cl.createProperty("surname", OType.STRING);
    cl.createProperty("birthDate", OType.DATE);
View Full Code Here


    @Override
    public void init() {
      database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");
      record = database.newInstance();
      database.declareIntent(new OIntentMassiveInsert());
      database.begin(TXTYPE.NOTX);

      synchronized (LocalCreateDocumentMultiThreadIndexedSpeedTest.class) {
        database.command(new OCommandSQL("truncate class account")).execute();
View Full Code Here

    OProfiler.getInstance().startRecording();

    database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");
    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

    // insert();
    query();
  }

  public static void insert() {
    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
    long ndoc = 1000000;
    ODocument doc = new ODocument();

    System.out.println("Inserting " + ndoc + " docs...");
View Full Code Here

  public void init() {
    OProfiler.getInstance().startRecording();

    database = new ODatabaseObjectTx(System.getProperty("url")).open("admin", "admin");

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

  public static void main(String[] iArgs) throws InstantiationException, IllegalAccessException {
    OProfiler.getInstance().startRecording();

    database = new ODatabaseGraphTx(System.getProperty("url")).open("admin", "admin");

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);

    long time = System.currentTimeMillis();

    OGraphVertex rootNode = database.createVertex().set("id", 0);
View Full Code Here

    OProfiler.getInstance().startRecording();

    database = new ODatabaseFlat(System.getProperty("url")).open("admin", "admin");
    record = database.newInstance();

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

    // REMOVE THE INDEX
    System.out.println("Remove index...");
    database.getMetadata().getSchema().getClass("Profile").getProperty("nick").dropIndex();
    System.out.println("Ok");

    database.declareIntent(new OIntentMassiveInsert());
    database.begin(TXTYPE.NOTX);
  }
View Full Code Here

    checkCurrentDatabase();

    out.println("Declaring intent '" + iIntentName + "'...");

    if (iIntentName.equalsIgnoreCase("massiveinsert"))
      currentDatabase.declareIntent(new OIntentMassiveInsert());
    else if (iIntentName.equalsIgnoreCase("massiveread"))
      currentDatabase.declareIntent(new OIntentMassiveRead());
    else
      throw new IllegalArgumentException("Intent '" + iIntentName
          + "' not supported. Available ones are: massiveinsert, massiveread");
View Full Code Here

    @Override
    public void init() {
      database = new ODatabaseDocumentTx(System.getProperty("url")).open("admin", "admin");
      record = database.newInstance();
      database.declareIntent(new OIntentMassiveInsert());
      database.begin(TXTYPE.NOTX);

      synchronized (this) {
        OClass c = database.getMetadata().getSchema().getClass("Account");
        if (c == null)
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.intent.OIntentMassiveInsert

Copyright © 2018 www.massapicom. 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.