@Test public void testResultProgressWithLimit() throws Exception { for (int i = 0; i < 5; i++) { addWebPage(); } Query<String, WebPage> q = webPageStore.newQuery(); q.setLimit(2); assertProgress(q, 0, 0.5f, 1); }
@Override public Query<K, T> newQuery() { MongoDBQuery<K, T> query = new MongoDBQuery<>(this); query.setFields(getFieldsToQuery(null)); return query; }
MongoStore extends
DataStoreBase<K, T> { @Override public Query<K, T> newQuery() { MongoDBQuery<K, T> query = new MongoDBQuery<>(this); query.setFields(getFieldsToQuery(null)); return query; } }
MongoStore extends
DataStoreBase<K, T> { @Override public Query<K, T> newQuery() { MongoDBQuery<K, T> query = new MongoDBQuery<>(this); query.setFields(getFieldsToQuery(null)); return query; } MongoStore(); }
MongoStore extends
DataStoreBase<K, T> { @Override public Query<K, T> newQuery() { MongoDBQuery<K, T> query = new MongoDBQuery<>(this); query.setFields(getFieldsToQuery(null)); return query; } MongoStore(); void initialize(final Class<K> keyClass,
      final Class<T> pPersistentClass, final Properties properties); MongoMapping getMapping(); @Override String getSchemaName(); @Override String getSchemaName(final String mappingSchemaName,
      final Class<?> persistentClass); @Override void createSchema(); @Override void deleteSchema(); @Override boolean schemaExists(); @Override void flush(); @Override void close(); @Override T get(final K key, final String[] fields); @Override boolean exists(final K key); @Override void put(final K key, final T obj); @Override boolean delete(final K key); @Override long deleteByQuery(final Query<K, T> query); @Override Result<K, T> execute(final Query<K, T> query); @Override Query<K, T> newQuery(); @Override List<PartitionQuery<K, T>> getPartitions(final Query<K, T> query); T newInstance(final Document obj, final String[] fields); String encodeFieldKey(final String key); String decodeFieldKey(final String key); }
MongoStore extends
DataStoreBase<K, T> { @Override public Query<K, T> newQuery() { MongoDBQuery<K, T> query = new MongoDBQuery<>(this); query.setFields(getFieldsToQuery(null)); return query; } MongoStore(); void initialize(final Class<K> keyClass,
      final Class<T> pPersistentClass, final Properties properties); MongoMapping getMapping(); @Override String getSchemaName(); @Override String getSchemaName(final String mappingSchemaName,
      final Class<?> persistentClass); @Override void createSchema(); @Override void deleteSchema(); @Override boolean schemaExists(); @Override void flush(); @Override void close(); @Override T get(final K key, final String[] fields); @Override boolean exists(final K key); @Override void put(final K key, final T obj); @Override boolean delete(final K key); @Override long deleteByQuery(final Query<K, T> query); @Override Result<K, T> execute(final Query<K, T> query); @Override Query<K, T> newQuery(); @Override List<PartitionQuery<K, T>> getPartitions(final Query<K, T> query); T newInstance(final Document obj, final String[] fields); String encodeFieldKey(final String key); String decodeFieldKey(final String key); static final Logger LOG; static final String DEFAULT_MAPPING_FILE; }