티스토리 뷰
728x90
public class ScanTable{
public static void main(String args[]) throws IOException{
// Instantiating Configuration class
Configuration config = HBaseConfiguration.create();
// Instantiating HTable class
HTable table = new HTable(config, "emp");
// Instantiating the Scan class
Scan scan = new Scan();
// Scanning the required columns
scan.addColumn(Bytes.toBytes("personal"), Bytes.toBytes("name"));
scan.addColumn(Bytes.toBytes("personal"), Bytes.toBytes("city"));
// Getting the scan result
ResultScanner scanner = table.getScanner(scan);
// Reading values from scan result
for (Result result = scanner.next(); result != null; result = scanner.next())
System.out.println("Found row : " + result);
//closing the scanner
scanner.close();
}
}
https://www.tutorialspoint.com/hbase/hbase_scan.htm
HBase - Scan - Tutorialspoint
HBase - Scan Scaning using HBase Shell The scan command is used to view the data in HTable. Using the scan command, you can get the table data. Its syntax is as follows: scan ‘’ Example The following example shows how to read data from a table using th
www.tutorialspoint.com
728x90
'공부' 카테고리의 다른 글
[Sh] curl request & response (status code) (0) | 2021.05.25 |
---|---|
[Spring] @RequestParam(value="value", required=true) List<String> values (0) | 2021.05.25 |
[Sh] exit (0) == success; exist (1) == fail; (0) | 2021.05.25 |
JUnit In Action (1) | 2021.05.19 |
Facade Pattern (0) | 2021.05.19 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 리퍼럴 코드 생성
- COUNT
- 모델y
- 메디파크 내과 전문의 의학박사 김영수
- wlw
- 테슬라 레퍼럴 코드 확인
- 테슬라 레퍼럴
- 테슬라 리퍼럴 코드
- 테슬라 추천
- 테슬라 크레딧 사용
- Bot
- 모델 Y 레퍼럴
- 책그림
- 개리마커스
- 테슬라
- 테슬라 레퍼럴 적용 확인
- 팔로워 수 세기
- 김달
- 레퍼럴
- 어떻게 능력을 보여줄 것인가?
- 연애학개론
- follower
- 할인
- 클루지
- 인스타그램
- 유투브
- Kluge
- 테슬라 리퍼럴 코드 혜택
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
글 보관함