-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathmusic_schema.ddl
28 lines (27 loc) · 1.01 KB
/
music_schema.ddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CREATE TABLE users WITH DESCRIPTION 'A set of users'
ROW KEY FORMAT HASH PREFIXED(4)
WITH LOCALITY GROUP default
WITH DESCRIPTION 'Main locality group' (
MAXVERSIONS = INFINITY,
TTL = FOREVER,
INMEMORY = false,
COMPRESSED WITH NONE,
FAMILY info WITH DESCRIPTION 'Information about a user' (
track_plays "string" WITH DESCRIPTION 'Tracks played by the user',
next_song_rec "string" WITH DESCRIPTION 'Next song recommendation based on play history for a user'
)
);
CREATE TABLE songs WITH DESCRIPTION 'Songs available for playing'
ROW KEY FORMAT HASH PREFIXED(4)
WITH LOCALITY GROUP default
WITH DESCRIPTION 'Main locality group' (
MAXVERSIONS = 1,
TTL = FOREVER,
INMEMORY = false,
COMPRESSED WITH NONE,
FAMILY info WITH DESCRIPTION 'Information about a song' (
metadata CLASS org.kiji.examples.music.SongMetadata WITH DESCRIPTION 'Song metadata',
top_next_songs CLASS org.kiji.examples.music.TopSongs
WITH DESCRIPTION 'The most likely next songs to be played, and their counts'
)
);