Package org.apache.accumulo.core.data
Class ColumnUpdate
java.lang.Object
org.apache.accumulo.core.data.ColumnUpdate
A single column and value pair within a
Mutation.-
Constructor Summary
ConstructorsConstructorDescriptionColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) Creates a new column update. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Gets the column family for this update.byte[]Gets the column qualifier for this update.byte[]Gets the column visibility for this update.longGets the timestamp for this update.byte[]getValue()Gets the cell value for this update.inthashCode()booleanGets whether this update specifies a timestamp.booleanGets the delete marker for this update.toString()
-
Constructor Details
-
ColumnUpdate
public ColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val) Creates a new column update.- Parameters:
cf- column familycq- column qualifiercv- column visibilityhasts- true if the update specifies a timestampts- timestampdeleted- delete markerval- cell value
-
-
Method Details
-
hasTimestamp
public boolean hasTimestamp()Gets whether this update specifies a timestamp.- Returns:
- true if this update specifies a timestamp
-
getColumnFamily
public byte[] getColumnFamily()Gets the column family for this update. Not a defensive copy.- Returns:
- column family
-
getColumnQualifier
public byte[] getColumnQualifier()Gets the column qualifier for this update. Not a defensive copy.- Returns:
- column qualifier
-
getColumnVisibility
public byte[] getColumnVisibility()Gets the column visibility for this update.- Returns:
- column visibility
-
getTimestamp
public long getTimestamp()Gets the timestamp for this update.- Returns:
- timestamp
-
isDeleted
public boolean isDeleted()Gets the delete marker for this update.- Returns:
- delete marker
-
getValue
public byte[] getValue()Gets the cell value for this update.- Returns:
- cell value
-
toString
-
equals
-
hashCode
public int hashCode()
-