This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
调整配置文件中bean的名字。 调整包结构。 新增DisplayOnlyStringRowKey。
- Loading branch information
xinzhi.zhang
committed
Mar 25, 2014
1 parent
97cc8f1
commit 259603c
Showing
7 changed files
with
57 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/alipay/hbaseviewer/ext/DisplayOnlyStringRowKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.alipay.hbaseviewer.ext; | ||
|
||
import com.alipay.simplehbase.client.RowKey; | ||
import com.alipay.simplehbase.exception.SimpleHBaseException; | ||
|
||
public class DisplayOnlyStringRowKey implements RowKey { | ||
|
||
private String rowkey; | ||
|
||
public DisplayOnlyStringRowKey(String rowkey) { | ||
this.rowkey = rowkey; | ||
} | ||
|
||
@Override | ||
public byte[] toBytes() { | ||
throw new SimpleHBaseException("Not support."); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return rowkey; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters