Package com.orientechnologies.orient.core.intent

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


  public long rebuild(final OProgressListener iProgressListener) {
    clear();

    long documentIndexed = 0;

    final boolean intentInstalled = getDatabase().declareIntent(new OIntentMassiveInsert());

    checkForOptimization();
    acquireExclusiveLock();
    try {
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

    } catch (Exception e) {
      inStream = new FileInputStream(fileName);
    }

    jsonReader = new OJSONReader(new InputStreamReader(inStream));
    database.declareIntent(new OIntentMassiveInsert());
  }
View Full Code Here

  public ODatabaseImport(final ODatabaseDocument database, final InputStream iStream, final OCommandOutputListener iListener)
      throws IOException {
    super(database, "streaming", iListener);
    jsonReader = new OJSONReader(new InputStreamReader(iStream));
    database.declareIntent(new OIntentMassiveInsert());
  }
View Full Code Here

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

    database = new ODatabaseDocumentTx(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();

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

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

    long time = System.currentTimeMillis();

    final ODocument document = new ODocument(database, "Employee");
View Full Code Here

    OProfiler.getInstance().startRecording();

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

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

  public DictionaryPutSpeedTest() throws InstantiationException, IllegalAccessException {
    super(1000000);

    String url = System.getProperty("url");
    database = new ODatabaseFlat(url).open("admin", "admin");
    database.declareIntent(new OIntentMassiveInsert());

    record = database.newInstance();
    startNum = 0;// database.countClusterElements("Animal");

    OProfiler.getInstance().startRecording();
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);
    }
View Full Code Here

    @Override
    public void init() {
      database = new ODatabaseFlat(System.getProperty("url")).open("admin", "admin");
      record = database.newInstance();
      database.declareIntent(new OIntentMassiveInsert());
      database.begin(TXTYPE.NOTX);
    }
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.