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 voiddroppingOldTimestamp(long ts)booleanequals(Object o)longestimatedMemoryUsed()longgetSystemTimestamp()inthashCode()protected ColumnUpdatenewColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val)voidreadFields(DataInput in)voidsetSystemTimestamp(long v)voidwrite(DataOutput out)-
Methods inherited from class org.apache.accumulo.core.data.Mutation
at, equals, getRow, getSerializedFormat, getUpdates, numBytes, prettyPrint, 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, 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:
droppingOldTimestampin classMutation
-
readFields
public void readFields(DataInput in) throws IOException
- Specified by:
readFieldsin interfaceorg.apache.hadoop.io.Writable- Overrides:
readFieldsin classMutation- Throws:
IOException
-
write
public void write(DataOutput out) throws IOException
- Specified by:
writein interfaceorg.apache.hadoop.io.Writable- Overrides:
writein 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:
newColumnUpdatein classMutation
-
estimatedMemoryUsed
public long estimatedMemoryUsed()
- Overrides:
estimatedMemoryUsedin classMutation
-
-