Questions tagged [mapping]

Corresponding every element of a given set to a unique element of another set or it may refer to a process of creating data element mappings between two distinct data models (objects)

In this context, mapping refers to the process of creating data element mappings between two distinct data models (objects).

When it refers to mapping in data integration, it is a set of source and target definitions linked by the transformation objects that define the rules for data transformation. Mappings represent the data flow between sources and targets.

Data mapping is typically used as a first step for a wide variety of data integration tasks such as:

  1. Data transformation or data mediation between a data source and a destination

  2. Identification of data relationships as part of data lineage analysis

  3. Replication of data between two entities with different key-value assignments

  4. Discovery of hidden sensitive data such as the last four digits social security number hidden in another user id as part of a data masking or de-identification project

  5. Consolidation of multiple databases into a single data base and identifying redundant columns of data for consolidation or elimination.

9739 questions
14
votes
3 answers

Map a range of values (e.g. [0,255]) to a range of colours (e.g. rainbow: [red,blue]) in JavaScript

I'm sure this must be a fairly straightforward, but it's a difficult question to word. I don't even know what to google for. I'm not looking for any complicated solution. Basically, I'm drawing lines on a Canvas, and I want different colours…
Matthew
  • 143
  • 1
  • 1
  • 4
14
votes
3 answers

Geographic obstructions in radius searches

I am new here and points poor so I can only offer 50 pt bounty. Suppose I have an application a search for all gas stations within 10 mile radius of a certain location. However one side of this location is surrounded by a mountain range that you…
Michael Papile
  • 6,836
  • 30
  • 30
14
votes
3 answers

map multiple columns by a single dictionary in pandas

I have a DataFrame with a multiple columns with 'yes' and 'no' strings. I want all of them to convert to a boolian dtype. To map one column, I would use dict_map_yn_bool={'yes':True,…
user2958481
  • 587
  • 2
  • 8
  • 20
14
votes
3 answers

Force HTTP1.1 instead of HTTP2 through Proxy (Charles)

Since we updated our clients to HTTP2, I've had problems with mapping files to local resources. We normally use Charles (App) to do this, but since we updated to HTTP2, we've had some errors. It seems to cut the files short and only load a tiny part…
bumstaerk
  • 161
  • 1
  • 7
14
votes
2 answers

Mapping C# object to BsonDocument

I am relatively new to MongoDB. I have an object with the following definition [BsonDiscriminator("user")] public Class BrdUser { [BsonId(IdGenerator = typeof(StringObjectIdGenerator))] public string ID { get; set; } …
progrAmmar
  • 2,606
  • 4
  • 29
  • 58
14
votes
4 answers

How to use Jackson's TypeReference with generics?

For json mapping I use the following method: public static T mapJsonToObject(String json, T dtoClass) throws Exception { ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(json, new TypeReference>()…
Mark Korzhov
  • 2,109
  • 11
  • 31
  • 63
14
votes
1 answer

AutoMapper - how to use custom value resolver inside custom type converter

How can I use custom value resolvers inside custom type converter? Currently, it seems to me hard to achieve. Do you know a way to how I can use this class? Person converter class PersonConverter : ITypeConverter { public…
Pawel Maga
  • 5,428
  • 3
  • 38
  • 62
14
votes
1 answer

Where to place @SqlResultSetMapping in case of @ConstructorResult

I'm trying to map a non-entity pojo with the createNativeQuery method of entityManager of jpa. By using something like this @SqlResultSetMapping(name="ResultMapping", classes={ @ConstructorResult( targetClass=Employee.class, columns={ …
14
votes
2 answers

How to store data in elasticsearch _source but not index it?

I am searching only by couple of fields but I want to be able to store the whole document in ES in order not to additional DB (MySQL) queries. I tried adding index: no, store: no to whole objects/properties in the mapping but I'm still not sure if…
pinkeen
  • 690
  • 3
  • 10
  • 21
14
votes
1 answer

Using discriminator in a entity that extends another

I'm trying to use a Discriminator in a entity that extends from another. This is the code I made: /** * @ORM\Entity * @ORM\Table(name="usuarios_externos.usuarios", schema="usuarios_externos") * @ORM\InheritanceType("JOINED") *…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
14
votes
3 answers

Where to find XAML namespace d="http://schemas.microsoft.com/expression/blend/2008" mapping library?

In every default WPF window as below, there are four namespaces referenced. I know: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" and xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" are mapping library…
Tealc Wu
  • 486
  • 1
  • 5
  • 11
13
votes
4 answers

Mapping entity in Dapper

I've just started working with Dapper and I don't seem to find something very simple like mapping an entity to a table in my database: I have a stored procedure: CREATE PROCEDURE [dbo].GetUserById (@UserId int) AS begin …
David Aleu
  • 3,922
  • 3
  • 27
  • 48
13
votes
4 answers

Mapping to a CFC in ColdFusion

In my application I have all my CFC's in a cfc folder. From the site root I can access them without any trouble by simply referring to them in my tag as component=cfc.mycomponent method=mymethod The trouble is, when I want to access the…
Ofeargall
  • 5,340
  • 5
  • 28
  • 33
13
votes
3 answers

Mapping an Integer to an RGB color in C#

So right now I have a number between 0 and 2^24, and I need to map it to three RGB values. I'm having a bit of trouble on how I'd accomplish this. Any assistance is appreciated.
Evan Fosmark
  • 98,895
  • 36
  • 105
  • 117
13
votes
1 answer

Entity Framework Code First Many to Many Setup For Existing Tables

I have the following tables Essence, EssenseSet, and Essense2EssenceSet Essense2EssenceSet is the linking table that creates the M:M relationship. I've been unable to get the M:M relationship working though in EF code first though. Here's my…