// Path: hbase1.2/hbase-common-1.2/src/main/java/com/kakao/hbase/specific/RegionLoadDelegator.java
// public class RegionLoadDelegator {
//     private final org.apache.hadoop.hbase.RegionLoad regionLoad;
// 
//     public RegionLoadDelegator(org.apache.hadoop.hbase.RegionLoad regionLoad) {
//         this.regionLoad = regionLoad;
//     }
// 
//     public static LoadEntry[] loadEntries() {
//         return LoadEntry.values();
//     }
// 
//     public int getStorefiles() {
//         return regionLoad.getStorefiles();
//     }
// 
//     public int getStoreUncompressedSizeMB() {
//         return regionLoad.getStoreUncompressedSizeMB();
//     }
// 
//     public int getStorefileSizeMB() {
//         return regionLoad.getStorefileSizeMB();
//     }
// 
//     public long getReadRequestsCount() {
//         return regionLoad.getReadRequestsCount();
//     }
// 
//     public long getWriteRequestsCount() {
//         return regionLoad.getWriteRequestsCount();
//     }
// 
//     public int getMemStoreSizeMB() {
//         return regionLoad.getMemStoreSizeMB();
//     }
// 
//     public long getCurrentCompactedKVs() {
//         return regionLoad.getCurrentCompactedKVs();
//     }
// 
//     public int getRegions() {
//         return 1;
//     }
// 
//     public float getDataLocality() {
//         return regionLoad.getDataLocality();
//     }
// }


import com.kakao.hbase.specific.RegionLoadDelegator;
import org.apache.hadoop.util.StringUtils;
/*
 * Copyright 2015 Kakao Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.kakao.hbase.common;


public enum LoadEntry {
    Reads {
        @Override
// Path: hbase1.2/hbase-common-1.2/src/main/java/com/kakao/hbase/specific/RegionLoadDelegator.java
// public class RegionLoadDelegator {
//     private final org.apache.hadoop.hbase.RegionLoad regionLoad;
// 
//     public RegionLoadDelegator(org.apache.hadoop.hbase.RegionLoad regionLoad) {
//         this.regionLoad = regionLoad;
//     }
// 
//     public static LoadEntry[] loadEntries() {
//         return LoadEntry.values();
//     }
// 
//     public int getStorefiles() {
//         return regionLoad.getStorefiles();
//     }
// 
//     public int getStoreUncompressedSizeMB() {
//         return regionLoad.getStoreUncompressedSizeMB();
//     }
// 
//     public int getStorefileSizeMB() {
//         return regionLoad.getStorefileSizeMB();
//     }
// 
//     public long getReadRequestsCount() {
//         return regionLoad.getReadRequestsCount();
//     }
// 
//     public long getWriteRequestsCount() {
//         return regionLoad.getWriteRequestsCount();
//     }
// 
//     public int getMemStoreSizeMB() {
//         return regionLoad.getMemStoreSizeMB();
//     }
// 
//     public long getCurrentCompactedKVs() {
//         return regionLoad.getCurrentCompactedKVs();
//     }
// 
//     public int getRegions() {
//         return 1;
//     }
// 
//     public float getDataLocality() {
//         return regionLoad.getDataLocality();
//     }
// }


// Path: hbase0.98/hbase-common-0.98/src/main/java/com/kakao/hbase/common/LoadEntry.java
import com.kakao.hbase.specific.RegionLoadDelegator;
import org.apache.hadoop.util.StringUtils;

/*
 * Copyright 2015 Kakao Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.kakao.hbase.common;


public enum LoadEntry {
    Reads {
        @Override
        public Number getValue(RegionLoadDelegator regionLoad) {