congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ExecutionConfig.isForceKryoEnabled
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/flink

/**
 * Returns the registered Kryo types.
 */
public LinkedHashSet<Class<?>> getRegisteredKryoTypes() {
  if (isForceKryoEnabled()) {
    // if we force kryo, we must also return all the types that
    // were previously only registered as POJO
    LinkedHashSet<Class<?>> result = new LinkedHashSet<>();
    result.addAll(registeredKryoTypes);
    for(Class<?> t : registeredPojoTypes) {
      if (!result.contains(t)) {
        result.add(t);
      }
    }
    return result;
  } else {
    return registeredKryoTypes;
  }
}
origin: apache/flink

LOG.info("The job has {} registered types and {} default Kryo serializers", registeredTypes, defaultKryoSerializers);
if (config.isForceKryoEnabled() && config.isForceAvroEnabled()) {
  LOG.warn("In the ExecutionConfig, both Avro and Kryo are enforced. Using Kryo serializer");
if (config.isForceKryoEnabled()) {
  LOG.info("Using KryoSerializer for serializing POJOs");
origin: apache/flink

@Override
@PublicEvolving
@SuppressWarnings("unchecked")
public TypeSerializer<T> createSerializer(ExecutionConfig config) {
  if (config.isForceKryoEnabled()) {
    return new KryoSerializer<>(getTypeClass(), config);
  }
  if (config.isForceAvroEnabled()) {
    return AvroUtils.getAvroUtils().createAvroSerializer(getTypeClass());
  }
  return createPojoSerializer(config);
}
origin: apache/flink

assertEquals(forceKryoEnabled, copy1.isForceKryoEnabled());
assertEquals(disableGenericTypes, copy1.hasGenericTypesDisabled());
assertEquals(objectReuseEnabled, copy1.isObjectReuseEnabled());
origin: org.apache.flink/flink-core

/**
 * Returns the registered Kryo types.
 */
public LinkedHashSet<Class<?>> getRegisteredKryoTypes() {
  if (isForceKryoEnabled()) {
    // if we force kryo, we must also return all the types that
    // were previously only registered as POJO
    LinkedHashSet<Class<?>> result = new LinkedHashSet<>();
    result.addAll(registeredKryoTypes);
    for(Class<?> t : registeredPojoTypes) {
      if (!result.contains(t)) {
        result.add(t);
      }
    }
    return result;
  } else {
    return registeredKryoTypes;
  }
}
origin: com.alibaba.blink/flink-core

/**
 * Returns the registered Kryo types.
 */
public LinkedHashSet<Class<?>> getRegisteredKryoTypes() {
  if (isForceKryoEnabled()) {
    // if we force kryo, we must also return all the types that
    // were previously only registered as POJO
    LinkedHashSet<Class<?>> result = new LinkedHashSet<>();
    result.addAll(registeredKryoTypes);
    for(Class<?> t : registeredPojoTypes) {
      if (!result.contains(t)) {
        result.add(t);
      }
    }
    return result;
  } else {
    return registeredKryoTypes;
  }
}
origin: org.apache.flink/flink-java

LOG.info("The job has {} registered types and {} default Kryo serializers", registeredTypes, defaultKryoSerializers);
if (config.isForceKryoEnabled() && config.isForceAvroEnabled()) {
  LOG.warn("In the ExecutionConfig, both Avro and Kryo are enforced. Using Kryo serializer");
if (config.isForceKryoEnabled()) {
  LOG.info("Using KryoSerializer for serializing POJOs");
origin: DTStack/flinkx

LOG.info("The job has {} registered types and {} default Kryo serializers", registeredTypes, defaultKryoSerializers);
if (config.isForceKryoEnabled() && config.isForceAvroEnabled()) {
  LOG.warn("In the ExecutionConfig, both Avro and Kryo are enforced. Using Kryo serializer");
if (config.isForceKryoEnabled()) {
  LOG.info("Using KryoSerializer for serializing POJOs");
origin: com.alibaba.blink/flink-java

LOG.info("The job has {} registered types and {} default Kryo serializers", registeredTypes, defaultKryoSerializers);
if (config.isForceKryoEnabled() && config.isForceAvroEnabled()) {
  LOG.warn("In the ExecutionConfig, both Avro and Kryo are enforced. Using Kryo serializer");
if (config.isForceKryoEnabled()) {
  LOG.info("Using KryoSerializer for serializing POJOs");
origin: com.alibaba.blink/flink-core

@Override
@PublicEvolving
@SuppressWarnings("unchecked")
public TypeSerializer<T> createSerializer(ExecutionConfig config) {
  if (config.isForceKryoEnabled()) {
    return new KryoSerializer<>(getTypeClass(), config);
  }
  if (config.isForceAvroEnabled()) {
    return AvroUtils.getAvroUtils().createAvroSerializer(getTypeClass());
  }
  return createPojoSerializer(config);
}
origin: org.apache.flink/flink-core

@Override
@PublicEvolving
@SuppressWarnings("unchecked")
public TypeSerializer<T> createSerializer(ExecutionConfig config) {
  if (config.isForceKryoEnabled()) {
    return new KryoSerializer<>(getTypeClass(), config);
  }
  if (config.isForceAvroEnabled()) {
    return AvroUtils.getAvroUtils().createAvroSerializer(getTypeClass());
  }
  return createPojoSerializer(config);
}
org.apache.flink.api.commonExecutionConfigisForceKryoEnabled

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

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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