Class SqlInfoOptionsUtils

java.lang.Object
org.apache.arrow.flight.sql.util.SqlInfoOptionsUtils

public final class SqlInfoOptionsUtils extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static long
    createBitmaskFromEnums(com.google.protobuf.ProtocolMessageEnum... enums)
    Creates a bitmask that translates to the specified enums.
    static long
    createBitmaskFromEnums(Collection<com.google.protobuf.ProtocolMessageEnum> enums)
    Creates a bitmask that translates to the specified enums.
    static boolean
    doesBitmaskTranslateToEnum(com.google.protobuf.ProtocolMessageEnum enumInstance, long bitmask)
    Returns whether the provided bitmask points to the provided ProtocolMessageEnum by comparing ProtocolMessageEnum.getNumber() with the respective bit index of the bitmask.

    Methods inherited from class java.lang.Object

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

    • doesBitmaskTranslateToEnum

      public static boolean doesBitmaskTranslateToEnum(com.google.protobuf.ProtocolMessageEnum enumInstance, long bitmask)
      Returns whether the provided bitmask points to the provided ProtocolMessageEnum by comparing ProtocolMessageEnum.getNumber() with the respective bit index of the bitmask.
      Parameters:
      enumInstance - the protobuf message enum to use.
      bitmask - the bitmask response from FlightSqlClient.getSqlInfo(org.apache.arrow.flight.sql.impl.FlightSql.SqlInfo...).
      Returns:
      whether the provided bitmask points to the specified enumInstance.
    • createBitmaskFromEnums

      public static long createBitmaskFromEnums(com.google.protobuf.ProtocolMessageEnum... enums)
      Creates a bitmask that translates to the specified enums.
      Parameters:
      enums - the ProtocolMessageEnum instances to represent as bitmask.
      Returns:
      the bitmask.
    • createBitmaskFromEnums

      public static long createBitmaskFromEnums(Collection<com.google.protobuf.ProtocolMessageEnum> enums)
      Creates a bitmask that translates to the specified enums.
      Parameters:
      enums - the ProtocolMessageEnum instances to represent as bitmask.
      Returns:
      the bitmask.