Package org.apache.hadoop.ozone.om.codec
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 TypeMethodDescriptionorg.apache.hadoop.ozone.security.OzoneTokenIdentifiercopyObject(org.apache.hadoop.ozone.security.OzoneTokenIdentifier object) org.apache.hadoop.ozone.security.OzoneTokenIdentifierfromPersistedFormatImpl(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, waitMethods 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
- Specified by:
getTypeClassin interfaceorg.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:
toPersistedFormatin interfaceorg.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:
fromPersistedFormatImplin interfaceorg.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:
copyObjectin interfaceorg.apache.hadoop.hdds.utils.db.Codec<org.apache.hadoop.ozone.security.OzoneTokenIdentifier>
-