public class Property extends Object implements org.apache.flink.types.Value, Serializable, Comparable<Property>
| Constructor and Description |
|---|
Property()
Creates a new property.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property o) |
static Property |
create(String key,
Object value)
Creates a new property from the given arguments.
|
static Property |
create(String key,
PropertyValue value)
Creates a new property from the given arguments.
|
boolean |
equals(Object o) |
String |
getKey()
Returns the property key.
|
PropertyValue |
getValue()
Returns the property value.
|
int |
hashCode() |
void |
read(org.apache.flink.core.memory.DataInputView inputView) |
void |
setKey(String key)
Sets the property key.
|
void |
setValue(PropertyValue value)
Sets the property value.
|
String |
toString() |
void |
write(org.apache.flink.core.memory.DataOutputView outputView) |
public static Property create(String key, PropertyValue value)
key - property keyvalue - property valuepublic static Property create(String key, Object value)
PropertyValue.key - property keyvalue - property valuepublic String getKey()
public void setKey(String key)
key - property key (must not be null)public PropertyValue getValue()
public void setValue(PropertyValue value)
value - property value (must not be null)public int compareTo(Property o)
compareTo in interface Comparable<Property>public void write(org.apache.flink.core.memory.DataOutputView outputView)
throws IOException
write in interface org.apache.flink.core.io.IOReadableWritableIOExceptionpublic void read(org.apache.flink.core.memory.DataInputView inputView)
throws IOException
read in interface org.apache.flink.core.io.IOReadableWritableIOExceptionCopyright © 2014 - 2019–2019 University of Leipzig. All rights reserved.