Package com.orientechnologies.common.util

Examples of com.orientechnologies.common.util.OMultiKey


    final int paramCount = indexDefinition.getParamCount();

    for (int i = 1; i <= paramCount; i++) {
      final List<String> fields = normalizeFieldNames(indexDefinition.getFields().subList(0, i));
      final OMultiKey multiKey = new OMultiKey(fields);
      final Set<OIndex<?>> indexSet = map.get(multiKey);
      if (indexSet == null)
        continue;
      indexSet.remove(idx);
      if (indexSet.isEmpty()) {
View Full Code Here


  public Set<OIndex<?>> getClassInvolvedIndexes(final String className, Collection<String> fields) {
    acquireSharedLock();
    try {
      fields = normalizeFieldNames(fields);

      final OMultiKey multiKey = new OMultiKey(fields);

      final Map<OMultiKey, Set<OIndex<?>>> propertyIndex = classPropertyIndex.get(className.toLowerCase());

      if (propertyIndex == null || !propertyIndex.containsKey(multiKey))
        return Collections.emptySet();
View Full Code Here

  public boolean areIndexed(final String className, Collection<String> fields) {
    acquireSharedLock();
    try {
      fields = normalizeFieldNames(fields);

      final OMultiKey multiKey = new OMultiKey(fields);

      final Map<OMultiKey, Set<OIndex<?>>> propertyIndex = classPropertyIndex.get(className.toLowerCase());

      if (propertyIndex == null)
        return false;
View Full Code Here

      final int paramCount = indexDefinition.getParamCount();

      for (int i = 1; i <= paramCount; i++) {
        final List<String> fields = indexDefinition.getFields().subList(0, i);
        final OMultiKey multiKey = new OMultiKey(normalizeFieldNames(fields));
        Set<OIndex<?>> indexSet = propertyIndex.get(multiKey);
        if (indexSet == null)
          indexSet = new HashSet<OIndex<?>>();
        indexSet.add(index);
        propertyIndex.put(multiKey, indexSet);
View Full Code Here

TOP

Related Classes of com.orientechnologies.common.util.OMultiKey

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.