congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ExecutionConfig.registerPojoType
Code IndexAdd Tabnine to your IDE (free)

How to use
registerPojoType
method
in
org.apache.flink.api.common.ExecutionConfig

Best Java code snippets using org.apache.flink.api.common.ExecutionConfig.registerPojoType (Showing top 13 results out of 315)

origin: apache/flink

/**
 * Registers the given type with the serialization stack. If the type is eventually
 * serialized as a POJO, then the type is registered with the POJO serializer. If the
 * type ends up being serialized with Kryo, then it will be registered at Kryo to make
 * sure that only tags are written.
 *
 * @param type The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: apache/flink

/**
 * Registers the given type with the serialization stack. If the type is
 * eventually serialized as a POJO, then the type is registered with the
 * POJO serializer. If the type ends up being serialized with Kryo, then it
 * will be registered at Kryo to make sure that only tags are written.
 *
 * @param type
 *         The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: apache/flink

@Override
protected TypeSerializer<TestUserInterface> createSerializer() {
  // only register one of the two child classes
  ExecutionConfig conf = new ExecutionConfig();
  conf.registerPojoType(TestUserClass2.class);
  TypeSerializer<TestUserInterface> serializer = type.createSerializer(conf);
  assert(serializer instanceof KryoSerializer);
  return serializer;
}
origin: apache/flink

@Override
protected TypeSerializer<TestUserClassBase> createSerializer() {
  // only register one of the three child classes, the third child class is NO POJO
  ExecutionConfig conf = new ExecutionConfig();
  conf.registerPojoType(TestUserClass1.class);
  TypeSerializer<TestUserClassBase> serializer = type.createSerializer(conf);
  assert(serializer instanceof PojoSerializer);
  return serializer;
}
origin: apache/flink

public void testReconfigureDifferentSubclassRegistrationOrder() throws Exception {
  ExecutionConfig executionConfig = new ExecutionConfig();
  executionConfig.registerPojoType(SubTestUserClassA.class);
  executionConfig.registerPojoType(SubTestUserClassB.class);
  executionConfig.registerPojoType(SubTestUserClassB.class); // test with B registered before A
  executionConfig.registerPojoType(SubTestUserClassA.class);
origin: apache/flink

newExecutionConfig.registerPojoType(SubTestUserClassA.class);
newExecutionConfig.registerPojoType(SubTestUserClassB.class);
pojoSerializer = (PojoSerializer<TestUserClass>) type.createSerializer(newExecutionConfig);
origin: DTStack/flinkx

/**
 * Registers the given type with the serialization stack. If the type is eventually
 * serialized as a POJO, then the type is registered with the POJO serializer. If the
 * type ends up being serialized with Kryo, then it will be registered at Kryo to make
 * sure that only tags are written.
 *
 * @param type The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: org.apache.flink/flink-java

/**
 * Registers the given type with the serialization stack. If the type is eventually
 * serialized as a POJO, then the type is registered with the POJO serializer. If the
 * type ends up being serialized with Kryo, then it will be registered at Kryo to make
 * sure that only tags are written.
 *
 * @param type The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: DTStack/flinkx

/**
 * Registers the given type with the serialization stack. If the type is
 * eventually serialized as a POJO, then the type is registered with the
 * POJO serializer. If the type ends up being serialized with Kryo, then it
 * will be registered at Kryo to make sure that only tags are written.
 *
 * @param type
 *         The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: com.alibaba.blink/flink-java

/**
 * Registers the given type with the serialization stack. If the type is eventually
 * serialized as a POJO, then the type is registered with the POJO serializer. If the
 * type ends up being serialized with Kryo, then it will be registered at Kryo to make
 * sure that only tags are written.
 *
 * @param type The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: org.apache.flink/flink-streaming-java

/**
 * Registers the given type with the serialization stack. If the type is
 * eventually serialized as a POJO, then the type is registered with the
 * POJO serializer. If the type ends up being serialized with Kryo, then it
 * will be registered at Kryo to make sure that only tags are written.
 *
 * @param type
 *         The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: org.apache.flink/flink-streaming-java_2.10

/**
 * Registers the given type with the serialization stack. If the type is
 * eventually serialized as a POJO, then the type is registered with the
 * POJO serializer. If the type ends up being serialized with Kryo, then it
 * will be registered at Kryo to make sure that only tags are written.
 *
 * @param type
 *         The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
origin: org.apache.flink/flink-streaming-java_2.11

/**
 * Registers the given type with the serialization stack. If the type is
 * eventually serialized as a POJO, then the type is registered with the
 * POJO serializer. If the type ends up being serialized with Kryo, then it
 * will be registered at Kryo to make sure that only tags are written.
 *
 * @param type
 *         The class of the type to register.
 */
public void registerType(Class<?> type) {
  if (type == null) {
    throw new NullPointerException("Cannot register null type class.");
  }
  TypeInformation<?> typeInfo = TypeExtractor.createTypeInfo(type);
  if (typeInfo instanceof PojoTypeInfo) {
    config.registerPojoType(type);
  } else {
    config.registerKryoType(type);
  }
}
org.apache.flink.api.commonExecutionConfigregisterPojoType

Javadoc

Registers the given type with the serialization stack. If the type is eventually serialized as a POJO, then the type is registered with the POJO serializer. If the type ends up being serialized with Kryo, then it will be registered at Kryo to make sure that only tags are written.

Popular methods of ExecutionConfig

  • <init>
  • isObjectReuseEnabled
    Returns whether object reuse has been enabled or disabled. @see #enableObjectReuse()
  • disableSysoutLogging
    Disables the printing of progress update messages to System.out
  • getAutoWatermarkInterval
    Returns the interval of the automatic watermark emission.
  • setGlobalJobParameters
    Register a custom, serializable user configuration object.
  • enableObjectReuse
    Enables reusing objects that Flink internally uses for deserialization and passing data to user-code
  • setAutoWatermarkInterval
    Sets the interval of the automatic watermark emission. Watermarks are used throughout the streaming
  • disableObjectReuse
    Disables reusing objects that Flink internally uses for deserialization and passing data to user-cod
  • getRestartStrategy
    Returns the restart strategy which has been set for the current job.
  • isSysoutLoggingEnabled
    Gets whether progress update messages should be printed to System.out
  • registerKryoType
    Registers the given type with the serialization stack. If the type is eventually serialized as a POJ
  • registerTypeWithKryoSerializer
    Registers the given Serializer via its class as a serializer for the given type at the KryoSerialize
  • registerKryoType,
  • registerTypeWithKryoSerializer,
  • setRestartStrategy,
  • getParallelism,
  • addDefaultKryoSerializer,
  • getGlobalJobParameters,
  • getNumberOfExecutionRetries,
  • getRegisteredKryoTypes,
  • setParallelism,
  • getDefaultKryoSerializerClasses

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now