public class CountTimeWritable extends Object implements org.apache.hadoop.io.Writable
Writable used as a composite value that
accumulates the count and cumulative latency of replayed commands. It is
used as the output value for AuditReplayMapper and AuditReplayReducer.| Constructor and Description |
|---|
CountTimeWritable() |
CountTimeWritable(long count,
long time) |
CountTimeWritable(org.apache.hadoop.io.LongWritable count,
org.apache.hadoop.io.LongWritable time) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount() |
long |
getTime() |
void |
readFields(DataInput in) |
void |
setCount(long count) |
void |
setTime(long time) |
String |
toString() |
void |
write(DataOutput out) |
public CountTimeWritable()
public CountTimeWritable(org.apache.hadoop.io.LongWritable count,
org.apache.hadoop.io.LongWritable time)
public CountTimeWritable(long count,
long time)
public long getCount()
public long getTime()
public void setCount(long count)
public void setTime(long time)
public void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.