Package org.apache.accumulo.core.data
Class ColumnUpdate
- java.lang.Object
-
- org.apache.accumulo.core.data.ColumnUpdate
-
-
Constructor Summary
Constructors Constructor Description ColumnUpdate(byte[] cf, byte[] cq, byte[] cv, boolean hasts, long ts, boolean deleted, byte[] val)
Creates a new column update.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getColumnFamily()
Gets the column family for this update.byte[]
getColumnQualifier()
Gets the column qualifier for this update.byte[]
getColumnVisibility()
Gets the column visibility for this update.long
getTimestamp()
Gets the timestamp for this update.byte[]
getValue()
Gets the cell value for this update.int
hashCode()
boolean
hasTimestamp()
Gets whether this update specifies a timestamp.boolean
isDeleted()
Gets the delete marker for this update.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-