Class IndexCodec

java.lang.Object
com.illumon.iris.db.v2.utils.IndexCodec
All Implemented Interfaces:
io.deephaven.util.codec.ObjectCodec<Index>, io.deephaven.util.codec.ObjectDecoder<Index>

public class IndexCodec extends Object implements io.deephaven.util.codec.ObjectCodec<Index>
A codec to encode and decode generic Indexes to a column.
  • Constructor Details

    • IndexCodec

      public IndexCodec(String arguments)
  • Method Details

    • encode

      @NotNull public byte[] encode(@Nullable Index input)
      Specified by:
      encode in interface io.deephaven.util.codec.ObjectCodec<Index>
    • isNullable

      public boolean isNullable()
      Specified by:
      isNullable in interface io.deephaven.util.codec.ObjectCodec<Index>
    • getPrecision

      public int getPrecision()
      Specified by:
      getPrecision in interface io.deephaven.util.codec.ObjectCodec<Index>
    • getScale

      public int getScale()
      Specified by:
      getScale in interface io.deephaven.util.codec.ObjectCodec<Index>
    • decode

      @Nullable public Index decode(@NotNull byte[] input, int offset, int length)
      Specified by:
      decode in interface io.deephaven.util.codec.ObjectDecoder<Index>
    • expectedObjectWidth

      public int expectedObjectWidth()
      Specified by:
      expectedObjectWidth in interface io.deephaven.util.codec.ObjectDecoder<Index>