org.apache.flink.util.ReflectionUtil Java Examples

The following examples show how to use org.apache.flink.util.ReflectionUtil. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MapValue.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with an empty HashMap.
 */
public MapValue() {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>();
}
 
Example #2
Source File: MapValue.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with a HashMap filled with all entries of the provided map.
 * 
 * @param map Map holding all entries with which the new encapsulated map is filled.
 */
public MapValue(Map<K, V> map) {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>(map);
}
 
Example #3
Source File: MapValue.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with an empty HashMap.
 */
public MapValue() {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>();
}
 
Example #4
Source File: MapValue.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with a HashMap filled with all entries of the provided map.
 * 
 * @param map Map holding all entries with which the new encapsulated map is filled.
 */
public MapValue(Map<K, V> map) {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>(map);
}
 
Example #5
Source File: MapValue.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with an empty HashMap.
 */
public MapValue() {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>();
}
 
Example #6
Source File: MapValue.java    From flink with Apache License 2.0 5 votes vote down vote up
/**
 * Initializes the encapsulated map with a HashMap filled with all entries of the provided map.
 * 
 * @param map Map holding all entries with which the new encapsulated map is filled.
 */
public MapValue(Map<K, V> map) {
	this.keyClass = ReflectionUtil.getTemplateType1(this.getClass());
	this.valueClass = ReflectionUtil.getTemplateType2(this.getClass());

	this.map = new HashMap<>(map);
}
 
Example #7
Source File: ListValue.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
/**
 * Initializes the encapsulated list with an empty ArrayList.
 * 
 * @see java.util.ArrayList
 */
public ListValue() {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>();
}
 
Example #8
Source File: ListValue.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Initializes the encapsulated list with an empty ArrayList.
 * 
 * @see java.util.ArrayList
 */
public ListValue() {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>();
}
 
Example #9
Source File: ListValue.java    From flink with Apache License 2.0 4 votes vote down vote up
/**
 * Initializes the encapsulated list with an empty ArrayList.
 * 
 * @see java.util.ArrayList
 */
public ListValue() {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>();
}
 
Example #10
Source File: ListValue.java    From Flink-CEPplus with Apache License 2.0 2 votes vote down vote up
/**
 * Initializes the encapsulated list with an ArrayList filled with all object contained in the specified Collection object.
 * 
 * @see java.util.ArrayList
 * @see java.util.Collection
 * 
 * @param c Collection of initial element of the encapsulated list.
 */
public ListValue(final Collection<V> c) {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>(c);
}
 
Example #11
Source File: ListValue.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Initializes the encapsulated list with an ArrayList filled with all object contained in the specified Collection object.
 * 
 * @see java.util.ArrayList
 * @see java.util.Collection
 * 
 * @param c Collection of initial element of the encapsulated list.
 */
public ListValue(final Collection<V> c) {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>(c);
}
 
Example #12
Source File: ListValue.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Initializes the encapsulated list with an ArrayList filled with all object contained in the specified Collection object.
 * 
 * @see java.util.ArrayList
 * @see java.util.Collection
 * 
 * @param c Collection of initial element of the encapsulated list.
 */
public ListValue(final Collection<V> c) {
	this.valueClass = ReflectionUtil.<V> getTemplateType1(this.getClass());

	this.list = new ArrayList<V>(c);
}