Class TokenIdentifierCodec

java.lang.Object
org.apache.hadoop.ozone.om.codec.TokenIdentifierCodec
All Implemented Interfaces:
org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>

public final class TokenIdentifierCodec extends Object implements org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
Codec to serialize/deserialize OzoneTokenIdentifier.
  • Field Summary

    Fields inherited from interface org.apache.hadoop.hdds.utils.db.Codec

    EMPTY_BYTE_ARRAY
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.hadoop.ozone.security.OzoneTokenIdentifier
    copyObject(org.apache.hadoop.ozone.security.OzoneTokenIdentifier object)
     
    org.apache.hadoop.ozone.security.OzoneTokenIdentifier
    fromPersistedFormatImpl(byte[] rawData)
     
    static org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
    get()
     
    Class<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
     
    byte[]
    toPersistedFormat(org.apache.hadoop.ozone.security.OzoneTokenIdentifier object)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.hadoop.hdds.utils.db.Codec

    fromCodecBuffer, fromPersistedFormat, supportCodecBuffer, toCodecBuffer, toDirectCodecBuffer, toHeapCodecBuffer, toPersistedFormatImpl
  • Method Details

    • get

      public static org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier> get()
    • getTypeClass

      public Class<org.apache.hadoop.ozone.security.OzoneTokenIdentifier> getTypeClass()
      Specified by:
      getTypeClass in interface org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
    • toPersistedFormat

      public byte[] toPersistedFormat(org.apache.hadoop.ozone.security.OzoneTokenIdentifier object)
      Specified by:
      toPersistedFormat in interface org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
    • fromPersistedFormatImpl

      public org.apache.hadoop.ozone.security.OzoneTokenIdentifier fromPersistedFormatImpl(byte[] rawData) throws IOException
      Specified by:
      fromPersistedFormatImpl in interface org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
      Throws:
      IOException
    • copyObject

      public org.apache.hadoop.ozone.security.OzoneTokenIdentifier copyObject(org.apache.hadoop.ozone.security.OzoneTokenIdentifier object)
      Specified by:
      copyObject in interface org.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>