@Test public void testInferDataType() throws GoraException { DataStore<Integer, EmployeeInt> employeeIntStore; employeeIntStore = testDriver.createDataStore(Integer.class, EmployeeInt.class); Query<Integer, EmployeeInt> query = employeeIntStore.newQuery(); createDummySimplifiedEmployees(employeeIntStore); query.setStartKey(0); query.setEndKey(10); Result<Integer, EmployeeInt> results = query.execute(); assertEquals(10, results.size()); }
@Override public Query<K, T> newQuery() { return new LuceneQuery<>(this); }
LuceneStore extends FileBackedDataStoreBase<K, T> implements Configurable { @Override public Query<K, T> newQuery() { return new LuceneQuery<>(this); } }
LuceneStore extends FileBackedDataStoreBase<K, T> implements Configurable { @Override public Query<K, T> newQuery() { return new LuceneQuery<>(this); }  }
LuceneStore extends FileBackedDataStoreBase<K, T> implements Configurable { @Override public Query<K, T> newQuery() { return new LuceneQuery<>(this); }  @Override void initialize(Class<K> keyClass, Class<T> persistentClass,
          Properties properties); @Override boolean delete(K key); @Override long deleteByQuery(Query<K, T> query); @Override void deleteSchema(); @Override boolean exists(K key); @Override T get(K key, String[] fieldsToLoad); T newInstance(Document doc, String[] fields); @Override String getSchemaName(); @Override Query<K, T> newQuery(); @Override void put(K key, T persistent); @Override List<PartitionQuery<K, T>> getPartitions(Query<K, T> query); @Override void flush(); @Override void close(); LuceneMapping getMapping(); }
LuceneStore extends FileBackedDataStoreBase<K, T> implements Configurable { @Override public Query<K, T> newQuery() { return new LuceneQuery<>(this); }  @Override void initialize(Class<K> keyClass, Class<T> persistentClass,
          Properties properties); @Override boolean delete(K key); @Override long deleteByQuery(Query<K, T> query); @Override void deleteSchema(); @Override boolean exists(K key); @Override T get(K key, String[] fieldsToLoad); T newInstance(Document doc, String[] fields); @Override String getSchemaName(); @Override Query<K, T> newQuery(); @Override void put(K key, T persistent); @Override List<PartitionQuery<K, T>> getPartitions(Query<K, T> query); @Override void flush(); @Override void close(); LuceneMapping getMapping();  }