Skip to content

Commit

Permalink
Added namespaces to table names.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgeorge committed Jun 2, 2015
1 parent 0630b5a commit f42adf3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hush/src/main/java/com/hbasebook/hush/table/HushTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class HushTable {
public static final TableName NAME = TableName.valueOf("hush");
public static final TableName NAME = TableName.valueOf("hush", "hush");
public static final byte[] COUNTERS_FAMILY = Bytes.toBytes("cnt");
public static final byte[] SHORT_ID = Bytes.toBytes("sid");
public static final byte[] ANONYMOUS_USER_ID = Bytes.toBytes("auid");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class LongDomainTable {
public static final TableName NAME = TableName.valueOf("ldom");
public static final TableName NAME = TableName.valueOf("hush", "ldom");
public static final byte[] DATA_FAMILY = Bytes.toBytes("data");
public static final byte[] SHORT_DOMAIN = Bytes.toBytes("sdom");
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class LongUrlTable {
public static final TableName NAME = TableName.valueOf("url");
public static final TableName NAME = TableName.valueOf("hush", "url");
public static final byte[] DATA_FAMILY = Bytes.toBytes("data");
public static final byte[] URL = Bytes.toBytes("url");
public static final byte[] SHORT_ID = Bytes.toBytes("sid");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
import org.apache.hadoop.hbase.util.Bytes;

public class ShortDomainTable {
public static final TableName NAME = TableName.valueOf("sdom");
public static final TableName NAME = TableName.valueOf("hush", "sdom");
public static final byte[] DOMAINS_FAMILY = Bytes.toBytes("domains");
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class ShortUrlTable {
public static final TableName NAME = TableName.valueOf("surl");
public static final TableName NAME = TableName.valueOf("hush", "surl");
public static final byte[] DATA_FAMILY = Bytes.toBytes("data");
public static final byte[] DAILY_FAMILY = Bytes.toBytes("std");
public static final byte[] WEEKLY_FAMILY = Bytes.toBytes("stw");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class UserShortUrlTable {
public static final TableName NAME = TableName.valueOf("user-surl");
public static final TableName NAME = TableName.valueOf("hush", "user-surl");
public static final byte[] DATA_FAMILY = Bytes.toBytes("data");
public static final byte[] TIMESTAMP = Bytes.toBytes("ts");
}
2 changes: 1 addition & 1 deletion hush/src/main/java/com/hbasebook/hush/table/UserTable.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.hadoop.hbase.util.Bytes;

public class UserTable {
public static final TableName NAME = TableName.valueOf("user");
public static final TableName NAME = TableName.valueOf("hush", "user");
public static final byte[] DATA_FAMILY = Bytes.toBytes("data");

public static final byte[] CREDENTIALS = Bytes.toBytes("credentials");
Expand Down

0 comments on commit f42adf3

Please sign in to comment.