Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what exactly is a map dimension in a multi-dimensional map?

Like many these days, I am an old relational-model user approaching Cassandra for the first time. I have been trying to understand Cassandra's data model, and when I read about it I frequently encounter statements that encourage me to think about it as 4 and 5 dimensional maps.

Now I'm familiar with an ordinary key/value Map, but I have never thought of how many dimensions it has, and that gives me no basis to plunge headlong into trying to visualize 4 and 5 dimensions.

Is there a more gentle introduction to dimensionality in maps? How many dimensions are there in an ordinary hashtable? One? Two? Zero?

If an ordinary hashtable has, say, just one dimension, then what would a two-dimensional map be? If two, then what would a 3-dimensional map be?

like image 504
pohl Avatar asked Apr 19 '11 16:04

pohl


People also ask

What are map dimensions?

Dimensions are a special kind of geodatabase annotation for showing specific lengths or distances on a map. A dimension may indicate the length of a side of a building or land parcel or the distance between two features such as a fire hydrant and the corner of a building.

What is multi dimensional mapping?

Multi-dimension mapping enables you to define member mapping based on multiple source column values. This functionality provides you with the ability to load data into dimensions unavailable in the target application.

How many dimensional is a map?

A map is a 2-dimensional sketch Acquiring only two dimensions, such as width and height but no density or thickness. Sq., Circles, Triangles, etc. are two-dimensional subjects and are Also known as "2D".

What are 2 dimensions of map?

Having only two dimensions, such as width and height but no thickness. Squares, Circles, Triangles, etc are two-dimensional objects. Also known as "2D".


2 Answers

Map<String, String>                           -- One dimension
Map<String, Map<String, String>>              -- Two dimensions
Map<String, Map<String, Map<String,String>>>  -- Three dimensions

etc...

like image 154
Schildmeijer Avatar answered Oct 23 '22 08:10

Schildmeijer


Encouraging you to think of it as 4 or 5 dimensional maps is one of the best signs that the author of what you're reading doesn't know what he's talking about.

Read the Max Grinev posts linked at the top of http://wiki.apache.org/cassandra/ArticlesAndPresentations instead.

like image 3
jbellis Avatar answered Oct 23 '22 06:10

jbellis