Java Code Examples for org.apache.flink.runtime.state.VoidNamespaceSerializer#INSTANCE

The following examples show how to use org.apache.flink.runtime.state.VoidNamespaceSerializer#INSTANCE . 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: FlinkTimerServiceFactory.java    From stateful-functions with Apache License 2.0 5 votes vote down vote up
@Override
public InternalTimerService<VoidNamespace> createTimerService(
    Triggerable<String, VoidNamespace> triggerable) {
  final TimerSerializer<String, VoidNamespace> timerSerializer =
      new TimerSerializer<>(StringSerializer.INSTANCE, VoidNamespaceSerializer.INSTANCE);

  return timeServiceManager.getInternalTimerService(
      DELAYED_MSG_TIMER_SERVICE_NAME, timerSerializer, triggerable);
}
 
Example 2
Source File: FlinkTimerServiceFactory.java    From flink-statefun with Apache License 2.0 5 votes vote down vote up
@Override
public InternalTimerService<VoidNamespace> createTimerService(
    Triggerable<String, VoidNamespace> triggerable) {
  final TimerSerializer<String, VoidNamespace> timerSerializer =
      new TimerSerializer<>(StringSerializer.INSTANCE, VoidNamespaceSerializer.INSTANCE);

  return timeServiceManager.getInternalTimerService(
      DELAYED_MSG_TIMER_SERVICE_NAME, timerSerializer, triggerable);
}
 
Example 3
Source File: KvStateRegistryTest.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<VoidNamespace> getNamespaceSerializer() {
	return VoidNamespaceSerializer.INSTANCE;
}
 
Example 4
Source File: KeyedStateInputFormat.java    From flink with Apache License 2.0 4 votes vote down vote up
@SuppressWarnings("unchecked")
private InternalTimerService<VoidNamespace> restoreTimerService(StreamOperatorStateContext context) {
	InternalTimeServiceManager<K> timeServiceManager = (InternalTimeServiceManager<K>) context.internalTimerServiceManager();
	TimerSerializer<K, VoidNamespace> timerSerializer = new TimerSerializer<>(keySerializer, VoidNamespaceSerializer.INSTANCE);
	return timeServiceManager.getInternalTimerService(USER_TIMERS_NAME, timerSerializer, VoidTriggerable.instance());
}
 
Example 5
Source File: KvStateRegistryTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<VoidNamespace> getNamespaceSerializer() {
	return VoidNamespaceSerializer.INSTANCE;
}
 
Example 6
Source File: KeyedStateReaderOperator.java    From flink with Apache License 2.0 4 votes vote down vote up
public KeyedStateReaderOperator(KeyedStateReaderFunction<KEY, OUT> function, TypeInformation<KEY> keyType) {
	super(function, keyType, VoidNamespaceSerializer.INSTANCE);
}
 
Example 7
Source File: KvStateRegistryTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<VoidNamespace> getNamespaceSerializer() {
	return VoidNamespaceSerializer.INSTANCE;
}