Package com.ikanow.infinit.e.data_model.index.feature.entity

Examples of com.ikanow.infinit.e.data_model.index.feature.entity.EntityFeaturePojoIndexMap$EventFeaturePojoSerializer


      }
    }

    if (_diagnosticMode) {
      System.out.println("EntityAggregationUtils.synchronizeEntityFeature, synchronize: " + new StringBuffer(entityFeature.getIndex()).append(':').append(communityId).toString() + " = " +
          IndexManager.mapToIndex(entityFeature, new EntityFeaturePojoIndexMap()));
    }
    else {
      ElasticSearchManager esm = IndexManager.getIndex(EntityFeaturePojoIndexMap.indexName_);       
      esm.addDocument(entityFeature, new EntityFeaturePojoIndexMap(), null, true);
        //(_id is set by the index map to index:communityId)
    }
  }//TESTED (by eye, mostly cut-and-paste from test Beta)
View Full Code Here


     
      // Add the entities
      if ( entities.size() > 1000 )
      {
        elasticManager.bulkAddDocuments(
            IndexManager.mapListToIndex(entities, EntityFeaturePojo.listType(), new EntityFeaturePojoIndexMap()),
            "_id", null, true);
          // (note EntityFeaturePojoIndexMap creates an "_id" field of the format index:community)
       
        entities = new ArrayList<EntityFeaturePojo>();
      }
    }
    //write whatevers left
    elasticManager.bulkAddDocuments(
        IndexManager.mapListToIndex(entities, EntityFeaturePojo.listType(), new EntityFeaturePojoIndexMap()),
        "_id", null, true);
      // (note EntityFeaturePojoIndexMap creates an "_id" field of the format index:community)
   
    if (null != chunk) {
      System.out.println("Found " + nSynced + " records to sync in chunk");
View Full Code Here

TOP

Related Classes of com.ikanow.infinit.e.data_model.index.feature.entity.EntityFeaturePojoIndexMap$EventFeaturePojoSerializer

Copyright © 2018 www.massapicom. 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.