赞
踩
TableName | name | |
TreeMap<byte [] , HColumnDescriptor> | families | 列族 |
Durability | durability | 枚举类型 |
boolean | meta | 这是否是 meta 表的缓存 |
boolean | root | 这是否是根表的缓存 |
Map<ImmutableBytesWritable,
ImmutableBytesWritable>
| values | |
Map<String, String> | configuration | |
| |
TableName | tableName | 表名称 |
long | regionId | |
byte []
| regionName | Region Name |
int | replicaId | |
boolean | offLine | 是否离线 |
boolean | split | 是否分离 |
byte []
| startKey | |
byte []
| endKey | |
int | hashCode | |
String | encodedName | 编码后的名称,作为存储 region 的上级目录名 |
Object(String) | table | 表名称 |
ByteString | name | snapshot Name |
int | version | 版本 |
... | ... | 更多属性 |
| bitField0_ | |
List<SnapshotRegionManifest.FamilyFiles> | familyFiles_ | 包含了该 Region 下所有的 Hfile 文件的地址或链接(Link) |
| memoizedHashCode | |
| memoizedlslnitialized | |
| memoizedSerializedSize | |
| memoizedSize | |
RegionInfo | regionInfo_ | |
| unknownFields | |
| version |
region_info { region_id: 1468477067115 table_name { namespace: "default"qualifier: "testRestore" } start_key: "\000\000\000\000"end_key: "\000\000\000\001"offline: false split: false replica_id: 0 } family_files { family_name: "cf"store_files { name: "3d64317c8b5344a0b7e591d5cf907e6e" } store_files { name: "d0b4d34cd8cb47bc8f0070afe83b20d1" } store_files { name: "e69ad852b0a748718ffc6c07dcfad8bc" } }
bitField0_ | | |
memoizedHashCode | ||
memoizedlslnitialized | ||
memoizedSerializedSize | | |
memoizedSize | | |
List<SnapshotRegionManifest> | regionManifests_ | |
TableSchema | tableSchema_ | |
unknownFieldSet |
- table_schema {
- table_name {
- namespace: "default"qualifier: "testRestore"
- }
- attributes {
- first: "IS_META"second: "false"
- }
- column_families {
- name: "cf"attributes {
- first: "DATA_BLOCK_ENCODING"second: "NONE"
- }
- attributes {
- first: "BLOOMFILTER"second: "ROW"
- }
- attributes {
- first: "REPLICATION_SCOPE"second: "0"
- }
- attributes {
- first: "COMPRESSION"second: "NONE"
- }
- attributes {
- first: "VERSIONS"second: "1"
- }
- attributes {
- first: "TTL"second: "2147483647"
- }
- attributes {
- first: "MIN_VERSIONS"second: "0"
- }
- attributes {
- first: "KEEP_DELETED_CELLS"second: "FALSE"
- }
- attributes {
- first: "BLOCKSIZE"second: "65536"
- }
- attributes {
- first: "IN_MEMORY"second: "false"
- }
- attributes {
- first: "BLOCKCACHE"second: "true"
- }
- }
- }
- region_manifests {
- region_info {
- region_id: 1468637981928 table_name {
- namespace: "default"qualifier: "testRestore"
- }
- start_key: "\000\000\000\000"end_key: "\000\000\000\001"offline: false split: false replica_id: 0
- }
- family_files {
- family_name: "cf"store_files {
- name: "617722f185be4c31a7e1dad6d697f96f"
- }
- store_files {
- name: "d1cade129d0a4663b290163774f93d1b"
- }
- store_files {
- name: "d390ebaae77b4f2d8a6a63dc0afcd16f"
- }
- }
- }
- region_manifests {
- region_info {
- region_id: 1468637983894 table_name {
- namespace: "default"qualifier: "testRestore"
- }
- start_key: ""end_key: ""offline: false split: false replica_id: 0
- }
- family_files {
- family_name: "cf"store_files {
- name: "0a3641d6754e4cdfbf4cd5412b2e5027.e38ba7d189fdc320ccd967bcc7e64258"
- }
- store_files {
- name: "2704e81af3284eabb170d5e86d9dab04.e38ba7d189fdc320ccd967bcc7e64258"
- }
- store_files {
- name: "be689528dfbe491db617bcc9f7b913c2.e38ba7d189fdc320ccd967bcc7e64258"
- }
- }
- }
- private FSDataInputStream tryOpen() throws IOException {
- // 遍历所有地址,尝试找到正确的文件
- for (Path path: fileLink.getLocations()) {
- if (path.equals(currentPath)) continue;
- try { in =fs.open(path, bufferSize);
- if (pos != 0) in .seek(pos);
- assert( in .getPos() == pos) : "Link unable to seek to the right position=" + pos;
- if (LOG.isTraceEnabled()) {
- if (currentPath == null) {
- LOG.debug("link open path=" + path);
- } else {
- LOG.trace("link switch from path=" + currentPath + " to path=" + path);
- }
- }
- currentPath = path;
- return ( in );
- } catch(FileNotFoundException e) {
- // Try another file location
- }
- }
- thrownew FileNotFoundException("Unable to open link: " + fileLink);
- }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。