Examples of areIndexed()


Examples of com.orientechnologies.orient.core.index.OIndexManager.areIndexed()

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
      "testCreateOnePropertyIndexTest" })
  public void testAreIndexedTwoPropertiesArrayParams() {
    final OIndexManager indexManager = database.getMetadata().getIndexManager();

    final boolean result = indexManager.areIndexed(CLASS_NAME, "fTwo", "fOne");

    assertTrue(result);
  }

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexManager.areIndexed()

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
      "testCreateOnePropertyIndexTest" })
  public void testAreIndexedThreePropertiesArrayParams() {
    final OIndexManager indexManager = database.getMetadata().getIndexManager();

    final boolean result = indexManager.areIndexed(CLASS_NAME, "fTwo", "fOne", "fThree");

    assertTrue(result);
  }

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexManager.areIndexed()

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
      "testCreateOnePropertyIndexTest" })
  public void testAreIndexedPropertiesNotFirstArrayParams() {
    final OIndexManager indexManager = database.getMetadata().getIndexManager();

    final boolean result = indexManager.areIndexed(CLASS_NAME, "fTwo", "fTree");

    assertFalse(result);
  }

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexManager.areIndexed()

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
      "testCreateOnePropertyIndexTest" })
  public void testAreIndexedPropertiesMoreThanNeededArrayParams() {
    final OIndexManager indexManager = database.getMetadata().getIndexManager();

    final boolean result = indexManager.areIndexed(CLASS_NAME, "fTwo", "fOne", "fThee", "fFour");

    assertFalse(result);
  }

  @Test(dependsOnMethods = { "createCompositeIndexTestWithListener", "createCompositeIndexTestWithoutListener",
View Full Code Here

Examples of com.orientechnologies.orient.core.index.OIndexManager.areIndexed()

  public boolean areIndexed(final Collection<String> fields) {
    final OIndexManager indexManager = getDatabase().getMetadata().getIndexManager();

    acquireSchemaReadLock();
    try {
      final boolean currentClassResult = indexManager.areIndexed(name, fields);

      if (superClass != null)
        return currentClassResult || superClass.areIndexed(fields);
      return currentClassResult;
    } finally {
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.areIndexed()

  private boolean checkIndexChainExistence(OClass iSchemaClass, OIndexSearchResult result) {
    final int fieldCount = result.lastField.getItemCount();
    OClass cls = iSchemaClass.getProperty(result.lastField.getItemName(0)).getLinkedClass();

    for (int i = 1; i < fieldCount; i++) {
      if (cls == null || !cls.areIndexed(result.lastField.getItemName(i))) {
        return false;
      }

      cls = cls.getProperty(result.lastField.getItemName(i)).getLinkedClass();
    }
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.