Java Code Examples for org.apache.flink.util.ReflectionUtil

The following examples show how to use org.apache.flink.util.ReflectionUtil. These examples are extracted from open source projects. 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 Project: Flink-CEPplus   Source File: MapValue.java    License: 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 Project: Flink-CEPplus   Source File: MapValue.java    License: 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 Project: flink   Source File: MapValue.java    License: 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 Project: flink   Source File: MapValue.java    License: 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 Project: flink   Source File: MapValue.java    License: 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 Project: flink   Source File: MapValue.java    License: 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 Project: Flink-CEPplus   Source File: ListValue.java    License: 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 Project: flink   Source File: ListValue.java    License: 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 Project: flink   Source File: ListValue.java    License: 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 Project: Flink-CEPplus   Source File: ListValue.java    License: 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 Project: flink   Source File: ListValue.java    License: 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 Project: flink   Source File: ListValue.java    License: 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);
}