Constructor and Description |
---|
SimpleSplit() |
Modifier and Type | Method and Description |
---|---|
String |
get(String name)
Gets an attribute value.
|
String |
get(String name,
String defaultValue)
Gets an attribute value.
|
void |
readExternal(DataInput in)
Deserialize this split.
|
void |
set(String name,
String value)
Sets an attribute.
|
void |
writeExternal(DataOutput out)
Serializing this split.
|
public void set(String name, String value)
name
- Name of the attribute.value
- Value of the attribute.public String get(String name)
name
- Name of the attribute to get the value of.public String get(String name, String defaultValue)
name
- Name of the attribute to get the value of.defaultValue
- The value to return if the attribute is not found.public void writeExternal(DataOutput out) throws IOException
Split
writeExternal
in class Split
out
- the DataOutput
for writing out this split informationIOException
- if failed to serializepublic void readExternal(DataInput in) throws IOException
Split
readExternal
in class Split
in
- the DataInput
to read back the split information.IOException
- if failed to deserializeCopyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.