Class ChunkCompatibility

java.lang.Object
io.deephaven.enterprise.compatibility.chunk.ChunkCompatibility

public class ChunkCompatibility extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static char
    Convert char null values from Core to Legacy.
    static ChunkType
    toCore(@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ChunkType chunkType)
    Convert a Legacy chunk type to its associated Core chunk type.
    static io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ChunkType
    toLegacy(ChunkType chunkType)
    Convert a Core chunk type to its associated Legacy chunk type.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ChunkCompatibility

      public ChunkCompatibility()
  • Method Details

    • toLegacy

      public static io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ChunkType toLegacy(@NotNull ChunkType chunkType)
      Convert a Core chunk type to its associated Legacy chunk type.
      Parameters:
      chunkType - Core chunk type
      Returns:
      associated Legacy chunk type
    • toCore

      public static ChunkType toCore(@NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.v2.sources.chunk.ChunkType chunkType)
      Convert a Legacy chunk type to its associated Core chunk type.
      Parameters:
      chunkType - Legacy chunk type
      Returns:
      associated Core chunk type
    • maybeConvertNullCharToLegacy

      public static char maybeConvertNullCharToLegacy(char value)
      Convert char null values from Core to Legacy.
      Parameters:
      value - input Core value
      Returns:
      Enterprise char null value if input is Core char null value; otherwise, the input value