Package org.apache.accumulo.server.data
Class ServerMutation
- java.lang.Object
-
- org.apache.accumulo.core.data.Mutation
-
- org.apache.accumulo.server.data.ServerMutation
-
- All Implemented Interfaces:
org.apache.hadoop.io.Writable
public class ServerMutation extends Mutation
Mutation that holds system time as computed by the tablet server when not provided by the user.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.data.Mutation
Mutation.FamilyOptions, Mutation.MutationOptions, Mutation.QualifierOptions, Mutation.SERIALIZED_FORMAT, Mutation.TimestampOptions, Mutation.VisibilityOptions
-
-
Constructor Summary
Constructors Constructor Description ServerMutation()
ServerMutation(TMutation tmutation)
ServerMutation(org.apache.hadoop.io.Text key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
droppingOldTimestamp(long ts)
boolean
equals(Object o)
long
estimatedMemoryUsed()
long
getSystemTimestamp()
int
hashCode()
protected ColumnUpdate
newColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val)
void
readFields(DataInput in)
void
setSystemTimestamp(long v)
void
write(DataOutput out)
-
Methods inherited from class org.apache.accumulo.core.data.Mutation
addReplicationSource, at, equals, getReplicationSources, getRow, getSerializedFormat, getUpdates, numBytes, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, setReplicationSources, size, toThrift
-
-
-
-
Constructor Detail
-
ServerMutation
public ServerMutation(TMutation tmutation)
-
ServerMutation
public ServerMutation(org.apache.hadoop.io.Text key)
-
ServerMutation
public ServerMutation()
-
-
Method Detail
-
droppingOldTimestamp
protected void droppingOldTimestamp(long ts)
- Overrides:
droppingOldTimestamp
in classMutation
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFields
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
readFields
in classMutation
- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
write
in interfaceorg.apache.hadoop.io.Writable
- Overrides:
write
in classMutation
- Throws:
IOException
-
setSystemTimestamp
public void setSystemTimestamp(long v)
-
getSystemTimestamp
public long getSystemTimestamp()
-
newColumnUpdate
protected ColumnUpdate newColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val)
- Overrides:
newColumnUpdate
in classMutation
-
estimatedMemoryUsed
public long estimatedMemoryUsed()
- Overrides:
estimatedMemoryUsed
in classMutation
-
-