Interface RawCell

All Superinterfaces:
Cell, HeapSize
All Known Subinterfaces:
ExtendedCell
All Known Implementing Classes:
BufferedDataBlockEncoder.OffheapDecodedExtendedCell, BufferedDataBlockEncoder.OnheapDecodedCell, ByteBufferChunkKeyValue, ByteBufferExtendedCell, ByteBufferKeyOnlyKeyValue, ByteBufferKeyValue, IndividualBytesFieldCell, KeyOnlyFilter.KeyOnlyByteBufferExtendedCell, KeyValue, KeyValue.KeyOnlyKeyValue, MapReduceExtendedCell, Mutation.CellWrapper, NoTagByteBufferChunkKeyValue, NoTagsByteBufferKeyValue, NoTagsKeyValue, PrivateCellUtil.EmptyByteBufferExtendedCell, PrivateCellUtil.EmptyCell, PrivateCellUtil.FirstOnRowByteBufferExtendedCell, PrivateCellUtil.FirstOnRowCell, PrivateCellUtil.FirstOnRowColByteBufferExtendedCell, PrivateCellUtil.FirstOnRowColCell, PrivateCellUtil.FirstOnRowColTSByteBufferExtendedCell, PrivateCellUtil.FirstOnRowColTSCell, PrivateCellUtil.FirstOnRowDeleteFamilyCell, PrivateCellUtil.LastOnRowByteBufferExtendedCell, PrivateCellUtil.LastOnRowCell, PrivateCellUtil.LastOnRowColByteBufferExtendedCell, PrivateCellUtil.LastOnRowColCell, PrivateCellUtil.TagRewriteByteBufferExtendedCell, PrivateCellUtil.TagRewriteCell, PrivateCellUtil.ValueAndTagRewriteByteBufferExtendedCell, PrivateCellUtil.ValueAndTagRewriteCell, SizeCachedByteBufferKeyValue, SizeCachedKeyValue, SizeCachedNoTagsByteBufferKeyValue, SizeCachedNoTagsKeyValue

@LimitedPrivate("Coprocesssor") public interface RawCell extends Cell
An extended version of Cell that allows CPs manipulate Tags.
  • Field Details

  • Method Details

    • cloneTags

      default byte[] cloneTags()
      Allows cloning the tags in the cell to a new byte[]
      Returns:
      the byte[] having the tags
    • getTags

      default Iterator<Tag> getTags()
      Creates a list of tags in the current cell
      Returns:
      a list of tags
    • getTag

      default Optional<Tag> getTag(byte type)
      Returns the specific tag of the given type
      Parameters:
      type - the type of the tag
      Returns:
      the specific tag if available or null
    • checkForTagsLength

      static void checkForTagsLength(int tagsLength)
      Check the length of tags. If it is invalid, throw IllegalArgumentException
      Parameters:
      tagsLength - the given length of tags
      Throws:
      IllegalArgumentException - if tagslength is invalid
    • createCell

      static Cell createCell(Cell cell, List<Tag> tags)
      Returns A new cell which is having the extra tags also added to it.