Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Unify syntax for columns and families #1

Open
Lemmsjid opened this issue May 9, 2012 · 0 comments
Open

Unify syntax for columns and families #1

Lemmsjid opened this issue May 9, 2012 · 0 comments
Assignees
Milestone

Comments

@Lemmsjid
Copy link
Contributor

Lemmsjid commented May 9, 2012

Column families require type parameters, whereas columns do not. For example:

//Define a family whose name is a String, whose Key Type is a String, and whose Value is an Int
family[String,String,Int]("myfamilyname") 

versus

//Define a column whose value type is a String
column(familyRef, "mycolumn", classOf[String])

The second syntax is cleaner because it makes everything explicit, esp if you use named parameters. So we'll upgrade families to use that syntax.

@ghost ghost assigned Lemmsjid May 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant