| Constructor and Description |
|---|
RecordSerDe() |
| Modifier and Type | Method and Description |
|---|---|
abstract Record |
deserialize(Writable blob)
Deserialize an Record out of a Writable blob.
|
abstract Class |
getSerializedClass() |
abstract void |
initialize(Configuration configuration,
Properties tableProperties)
Initialize the SerDe.
|
abstract Writable |
serialize(Record record)
Serialize a ODPS record into Writable
Writable. |
public abstract void initialize(Configuration configuration, Properties tableProperties) throws SerDeException
configuration - Odps configurationtableProperties - Table propertiesSerDeExceptionpublic abstract Writable serialize(Record record) throws SerDeException
Writable. In most cases, the return value
of this function will be constant since the function will reuse the Writable object. If the client
wants to keep a copy of the Writable, the client needs to clone the returned value.SerDeExceptionpublic abstract Record deserialize(Writable blob) throws SerDeException
blob - The Writable object containing a serialized objectSerDeExceptionpublic abstract Class getSerializedClass()
Copyright © 2023 Alibaba Cloud Computing. All rights reserved.