public abstract class Split extends Object
writeExternal(DataOutput)
and the readExternal(DataInput)
and have a public default constructor (constructor without arguments)
to provide a more efficient serialization mechanism.Constructor and Description |
---|
Split() |
Modifier and Type | Method and Description |
---|---|
long |
getLength()
By default assume that the size of each split is roughly the same.
|
void |
readExternal(DataInput in)
Deserialize this split.
|
void |
writeExternal(DataOutput out)
Serializing this split.
|
public long getLength()
public void writeExternal(DataOutput out) throws IOException
out
- the DataOutput
for writing out this split informationIOException
- if failed to serializepublic void readExternal(DataInput in) throws IOException
in
- the DataInput
to read back the split information.IOException
- if failed to deserializeCopyright © 2023 Cask Data, Inc. Licensed under the Apache License, Version 2.0.