Examples of AssociationFeaturePojoIndexMap


Examples of com.ikanow.infinit.e.data_model.index.feature.event.AssociationFeaturePojoIndexMap

      }
    }

    if (_diagnosticMode) {
      System.out.println("EventAggregationUtils.synchronizeEventFeature, synchronize: " + new StringBuffer(eventFeature.getIndex()).append(':').append(communityId).toString() + " = " +
          IndexManager.mapToIndex(eventFeature, new AssociationFeaturePojoIndexMap()));
    }
    else {
      ElasticSearchManager esm = IndexManager.getIndex(AssociationFeaturePojoIndexMap.indexName_);       
      esm.addDocument(eventFeature, new AssociationFeaturePojoIndexMap(), null, true);
    }
  }//TESTED
View Full Code Here

Examples of com.ikanow.infinit.e.data_model.index.feature.event.AssociationFeaturePojoIndexMap

      events.add(evt);
      nSynced++;
         
      if ( events.size() > 1000 )
      {
        elasticManager.bulkAddDocuments(IndexManager.mapListToIndex(events, AssociationFeaturePojo.listType(), new AssociationFeaturePojoIndexMap()), "_id", null,true);
        events.clear();
      }
    }
     // End loop over entities
   
    //write whatevers left
    elasticManager.bulkAddDocuments(IndexManager.mapListToIndex(events, AssociationFeaturePojo.listType(), new AssociationFeaturePojoIndexMap()), "_id", null,true);
   
    if (null != chunk) {
      System.out.println("Found " + nSynced + " records to sync in chunk");
    }       
  }
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.