Java Code Examples for org.apache.flink.api.common.serialization.DeserializationSchema#InitializationContext

The following examples show how to use org.apache.flink.api.common.serialization.DeserializationSchema#InitializationContext . 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: DeserializationSchemaWrapper.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public void open(DeserializationSchema.InitializationContext context) throws Exception {
	this.deserializationSchema.open(context);
}
 
Example 2
Source File: KafkaDeserializationSchemaWrapper.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public void open(DeserializationSchema.InitializationContext context) throws Exception {
	this.deserializationSchema.open(context);
}
 
Example 3
Source File: KinesisDeserializationSchemaWrapper.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public void open(DeserializationSchema.InitializationContext context) throws Exception {
	this.deserializationSchema.open(context);
}
 
Example 4
Source File: FlinkKinesisConsumerTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public void open(DeserializationSchema.InitializationContext context) throws Exception {
	assertThat(context.getMetricGroup(), notNullValue(MetricGroup.class));
	this.opened = true;
}
 
Example 5
Source File: PubSubDeserializationSchema.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Initialization method for the schema. It is called before the actual working methods
 * {@link #deserialize} and thus suitable for one time setup work.
 *
 * <p>The provided {@link DeserializationSchema.InitializationContext} can be used to access additional features such as e.g.
 * registering user metrics.
 *
 * @param context Contextual information that can be used during initialization.
 */
default void open(DeserializationSchema.InitializationContext context) throws Exception {
}
 
Example 6
Source File: KafkaDeserializationSchema.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Initialization method for the schema. It is called before the actual working methods
 * {@link #deserialize} and thus suitable for one time setup work.
 *
 * <p>The provided {@link DeserializationSchema.InitializationContext} can be used to access additional features such as e.g.
 * registering user metrics.
 *
 * @param context Contextual information that can be used during initialization.
 */
default void open(DeserializationSchema.InitializationContext context) throws Exception {
}
 
Example 7
Source File: KinesisDeserializationSchema.java    From flink with Apache License 2.0 2 votes vote down vote up
/**
 * Initialization method for the schema. It is called before the actual working methods
 * {@link #deserialize} and thus suitable for one time setup work.
 *
 * <p>The provided {@link DeserializationSchema.InitializationContext} can be used to access additional features such as e.g.
 * registering user metrics.
 *
 * @param context Contextual information that can be used during initialization.
 */
default void open(DeserializationSchema.InitializationContext context) throws Exception {
}