public class UserCommandKey extends Object implements org.apache.hadoop.io.WritableComparable
Writable used as a composite
key combining the user id, name, and type of a replayed command. It is used
as the output key for AuditReplayMapper and the keys for AuditReplayReducer.| Constructor and Description |
|---|
UserCommandKey() |
UserCommandKey(String user,
String command,
String type) |
UserCommandKey(org.apache.hadoop.io.Text user,
org.apache.hadoop.io.Text command,
org.apache.hadoop.io.Text type) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o) |
String |
getCommand() |
String |
getType() |
String |
getUser() |
int |
hashCode() |
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public UserCommandKey()
public UserCommandKey(org.apache.hadoop.io.Text user,
org.apache.hadoop.io.Text command,
org.apache.hadoop.io.Text type)
public String getUser()
public String getCommand()
public String getType()
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.WritableIOExceptionpublic int compareTo(@Nonnull Object o)
compareTo in interface ComparableCopyright © 2008–2023 Apache Software Foundation. All rights reserved.