Class ColumnUpdate

java.lang.Object
org.apache.accumulo.core.data.ColumnUpdate

public class ColumnUpdate
extends Object
A single column and value pair within a Mutation.
  • 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 family
      cq - column qualifier
      cv - column visibility
      hasts - true if the update specifies a timestamp
      ts - timestamp
      deleted - delete marker
      val - 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals​(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object