Examples of EntityMapping


Examples of com.rapidminer.data.EntityMapping

      public void doWork() throws OperatorException {
       
        ExampleSet exampleSet = exampleSetInput.getData();   
           
             IPosOnlyFeedback training_data=new PosOnlyFeedback();
             IEntityMapping user_mapping=new EntityMapping();
             IEntityMapping item_mapping=new EntityMapping();
           
             if (exampleSet.getAttributes().getSpecial("user identification") == null) {
                      throw new UserError(this,105);
                  }
             
             if (exampleSet.getAttributes().getSpecial("item identification") == null) {
                      throw new UserError(this, 105);
                  }
            
            
             Attributes Att = exampleSet.getAttributes();
             AttributeRole ur=Att.getRole("user identification");
             Attribute u=ur.getAttribute();
             AttributeRole ir=Att.getRole("item identification");
             Attribute i=ir.getAttribute();
           
            for (Example example : exampleSet) {
             
              double j=example.getValue(u);
              int uid=(int) j;

              j=example.getValue(i);
              int iid=(int) j;
             
              training_data.Add(user_mapping.ToInternalID(uid), item_mapping.ToInternalID(iid));
              checkForStop();
            }
           
           
            ExampleSet attribute_set=exampleSetInput1.getData();
View Full Code Here

Examples of org.hibernate.search.cfg.EntityMapping

        .addAnnotatedClass( CatalogItem.class )
        .addAnnotatedClass( Consumer.class )
        .addAnnotatedClass( Item.class );
    SearchMapping fluentMapping = builder.fluentMapping();
    // mapping for Catalog
    EntityMapping catalogMapping = fluentMapping
        .entity( Catalog.class );
    if ( withClassBridgeOnCatalog ) {
      catalogMapping.classBridge( NoopClassBridge.class );
    }
    catalogMapping
        .property( "catalogItems", ElementType.FIELD ).containedIn();

    // mapping for CatalogItem
    fluentMapping.entity( CatalogItem.class )
        .property( "item", ElementType.FIELD ).containedIn()
View Full Code Here

Examples of org.springframework.data.cassandra.mapping.EntityMapping

    Set<EntityMapping> mappings = new HashSet<EntityMapping>();

    for (Element entity : DomUtils.getChildElementsByTagName(element, "entity")) {

      EntityMapping entityMapping = parseEntity(entity);

      if (entityMapping != null) {
        mappings.add(entityMapping);
      }
    }
View Full Code Here

Examples of org.springframework.data.cassandra.mapping.EntityMapping

    // TODO: parse future entity mappings here, like table options

    Map<String, PropertyMapping> propertyMappings = parsePropertyMappings(entity);

    EntityMapping entityMapping = new EntityMapping(className, tableName, forceQuote);
    entityMapping.setPropertyMappings(propertyMappings);

    return entityMapping;
  }
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.