-
Notifications
You must be signed in to change notification settings - Fork 0
/
htypes.go
37 lines (31 loc) · 926 Bytes
/
htypes.go
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
32
33
34
35
36
37
// Package gohbase provides a pool of hbase clients
package gohbase
type HColumnValue struct {
Family string `json:"family"`
Qualifier string `json:"qualifier"`
Value string `json:"value"`
Timestamp int64 `json:"timestamp"`
Tags string `json:"tags"`
}
type HResult struct {
Row string `json:"row"`
ColumnValues []*HColumnValue `json:"columnValues"`
}
type HRegionInfo struct {
RegionId int64 `json:"regionId"`
TableName string `json:"tableName"`
StartKey string `json:"startKey"`
EndKey string `json:"endKey"`
Offline bool `json:"offline"`
Split bool `json:"split"`
ReplicaId int32 `json:"replicaId"`
}
type HServerName struct {
HostName string `json:"hostName"`
Port int32 `json:"port"`
StartCode int64 `json:"startCode"`
}
type HRegionLocation struct {
ServerName *HServerName `json:"serverName"`
RegionInfo *HRegionInfo `json:"regionInfo"`
}