Пример #1
0
 @Override
 public void updateFrom(SimpleIndexHits<T> newValue, RestAPI restApi) {
   this.hits = newValue.hits;
   this.iterator = this.hits.iterator();
   this.size = newValue.size;
   this.entityExtractor = restApi.createExtractor();
 }
Пример #2
0
 public SimpleIndexHits(
     Collection<Object> hits, int size, Class<T> entityType, final RestAPI restApi) {
   this.hits = hits;
   this.entityType = entityType;
   this.iterator = this.hits.iterator();
   this.size = size;
   this.entityExtractor = restApi.createExtractor();
 }
Пример #3
0
 public SimpleIndexHits(long batchId, Class<T> entityType, final RestAPI restApi) {
   this.entityType = entityType;
   this.entityExtractor = restApi.createExtractor();
 }