public static class HServerLoad.RegionLoad
extends org.apache.hadoop.io.VersionedWritable
Constructor and Description |
---|
HServerLoad.RegionLoad()
Constructor, for Writable
|
HServerLoad.RegionLoad(byte[] name,
int stores,
int storefiles,
int storeUncompressedSizeMB,
int storefileSizeMB,
int memstoreSizeMB,
int storefileIndexSizeMB,
int rootIndexSizeKB,
int totalStaticIndexSizeKB,
int totalStaticBloomSizeKB,
long readRequestsCount,
long writeRequestsCount,
long totalCompactingKVs,
long currentCompactedKVs) |
Modifier and Type | Method and Description |
---|---|
long |
getCurrentCompactedKVs() |
int |
getMemStoreSizeMB() |
byte[] |
getName() |
String |
getNameAsString() |
long |
getReadRequestsCount() |
long |
getRequestsCount() |
int |
getRootIndexSizeKB() |
int |
getStorefileIndexSizeMB() |
int |
getStorefiles() |
int |
getStorefileSizeMB() |
int |
getStores() |
long |
getTotalCompactingKVs() |
int |
getTotalStaticBloomSizeKB() |
int |
getTotalStaticIndexSizeKB() |
byte |
getVersion() |
long |
getWriteRequestsCount() |
void |
readFields(DataInput in) |
void |
setCurrentCompactedKVs(long currentCompactedKVs) |
void |
setMemStoreSizeMB(int memstoreSizeMB) |
void |
setName(byte[] name) |
void |
setReadRequestsCount(int requestsCount) |
void |
setStorefileIndexSizeMB(int storefileIndexSizeMB) |
void |
setStorefiles(int storefiles) |
void |
setStores(int stores) |
void |
setTotalCompactingKVs(long totalCompactingKVs) |
void |
setWriteRequestsCount(int requestsCount) |
String |
toString() |
void |
write(DataOutput out) |
public HServerLoad.RegionLoad()
public HServerLoad.RegionLoad(byte[] name, int stores, int storefiles, int storeUncompressedSizeMB, int storefileSizeMB, int memstoreSizeMB, int storefileIndexSizeMB, int rootIndexSizeKB, int totalStaticIndexSizeKB, int totalStaticBloomSizeKB, long readRequestsCount, long writeRequestsCount, long totalCompactingKVs, long currentCompactedKVs)
name
- stores
- storefiles
- storeUncompressedSizeMB
- storefileSizeMB
- memstoreSizeMB
- storefileIndexSizeMB
- readRequestsCount
- writeRequestsCount
- totalCompactingKVs
- currentCompactedKVs
- public byte getVersion()
getVersion
in class org.apache.hadoop.io.VersionedWritable
public byte[] getName()
public String getNameAsString()
public int getStores()
public int getStorefiles()
public int getStorefileSizeMB()
public int getMemStoreSizeMB()
public int getStorefileIndexSizeMB()
public long getRequestsCount()
public long getReadRequestsCount()
public long getWriteRequestsCount()
public int getRootIndexSizeKB()
public int getTotalStaticIndexSizeKB()
public int getTotalStaticBloomSizeKB()
public long getTotalCompactingKVs()
public long getCurrentCompactedKVs()
public void setName(byte[] name)
name
- the region namepublic void setStores(int stores)
stores
- the number of storespublic void setStorefiles(int storefiles)
storefiles
- the number of storefilespublic void setMemStoreSizeMB(int memstoreSizeMB)
memstoreSizeMB
- the memstore size, in MBpublic void setStorefileIndexSizeMB(int storefileIndexSizeMB)
storefileIndexSizeMB
- the approximate size of storefile indexes
on the heap, in MBpublic void setReadRequestsCount(int requestsCount)
requestsCount
- the number of read requests to regionpublic void setWriteRequestsCount(int requestsCount)
requestsCount
- the number of write requests to regionpublic void setTotalCompactingKVs(long totalCompactingKVs)
totalCompactingKVs
- the number of kvs total in current compactionpublic void setCurrentCompactedKVs(long currentCompactedKVs)
currentCompactedKVs
- the number of kvs already compacted in
current compactionpublic void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
readFields
in class org.apache.hadoop.io.VersionedWritable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
write
in class org.apache.hadoop.io.VersionedWritable
IOException
public String toString()
toString
in class Object
Object.toString()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.