Examples of hint()


Examples of com.mongodb.DBCursor.hint()

                    }
                    if (limit > 0) {
                        cur.limit(limit);
                    }
                    if (hint != null) {
                        cur.hint(hint);
                    }
                    if (explain) {
                        return cur.explain();
                    }
View Full Code Here

Examples of com.mongodb.DBCursor.hint()

                }
                if (limit > 0) {
                    cur.limit(limit);
                }
                if (hint != null) {
                    cur.hint(hint);
                }
                if (explain) {
                    return cur.explain();
                }
View Full Code Here

Examples of com.mongodb.DBCursor.hint()

        if (snapshotted)
            cursor.snapshot();
        if (sort != null)
            cursor.sort(sort);
        if (indexHint != null)
            cursor.hint(indexHint);

        if (null != readPref) {
            cursor.setReadPreference(readPref);
        }
View Full Code Here

Examples of com.mongodb.DBCursor.hint()

        if (query.getSortObject() != null) {
          DBObject sortDbo = type != null ? getMappedSortObject(query, type) : query.getSortObject();
          cursorToUse = cursorToUse.sort(sortDbo);
        }
        if (StringUtils.hasText(query.getHint())) {
          cursorToUse = cursorToUse.hint(query.getHint());
        }
        if (query.getMeta().hasValues()) {
          for (Entry<String, Object> entry : query.getMeta().values()) {
            cursorToUse = cursorToUse.addSpecial(entry.getKey(), entry.getValue());
          }
View Full Code Here

Examples of com.mongodb.DBCursor.hint()

        DBCursor cursor = oplogCollection.find(indexFilter).setOptions(options);

        // Toku sometimes gets stuck without this hint:
        if (indexFilter.containsField(MongoDBRiver.MONGODB_ID_FIELD)) {
            cursor = cursor.hint("_id_");
        }
        isRiverStale(cursor, time);
        return cursor;
    }
View Full Code Here

Examples of com.mongodb.DBCursor.hint()

        }
        if (sort != null) {
            cursor.sort(sort);
        }
        if (indexHint != null) {
            cursor.hint(indexHint);
        }

        if (null != readPref) {
            cursor.setReadPreference(readPref);
        }
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Component.hint()

        ComponentDescriptor<?> component = new ComponentDescriptor<Object>();
       
        component.setRole(anno.role().getName());

        component.setRoleHint(filterEmptyAsNull(anno.hint()));

        component.setImplementation(className);

        component.setVersion(filterEmptyAsNull(anno.version()));
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Component.hint()

        ComponentDescriptor<?> component = new ComponentDescriptor<Object>();
       
        component.setRole(anno.role().getName());

        component.setRoleHint(filterEmptyAsNull(anno.hint()));

        component.setImplementation(className);

        component.setVersion(filterEmptyAsNull(anno.version()));
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Requirement.hint()

        continue;
      }

      Requirement requirement = field.getAnnotation(Requirement.class);
      if (requirement != null) {
        lookupField(field, requirement.hint());
      }
    }
  }

  private void lookupField(Field field, String hint)
View Full Code Here

Examples of org.codehaus.plexus.component.annotations.Requirement.hint()

            //
        }
        else {
            requirement = new ComponentRequirement();

            requirement.setRoleHint(filterEmptyAsNull(anno.hint()));
        }

        // TODO need to read default annotation values
        // if (anno.role()==null || anno.role().isAssignableFrom(Object.class)) {
        if (anno.role().isAssignableFrom(Object.class)) {
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.