public final class SqlInfoOptionsUtils extends Object
FlightSql.SqlInfo
and FlightSqlClient.getSqlInfo(org.apache.arrow.flight.sql.impl.FlightSql.SqlInfo...)
option parsing.Modifier and Type | Method and Description |
---|---|
static long |
createBitmaskFromEnums(Collection<com.google.protobuf.ProtocolMessageEnum> enums)
Creates a bitmask that translates to the specified
enums . |
static long |
createBitmaskFromEnums(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 . |
public static boolean doesBitmaskTranslateToEnum(com.google.protobuf.ProtocolMessageEnum enumInstance, long bitmask)
bitmask
points to the provided ProtocolMessageEnum
by comparing
ProtocolMessageEnum.getNumber()
with the respective bit index of the bitmask
.enumInstance
- the protobuf message enum to use.bitmask
- the bitmask response from FlightSqlClient.getSqlInfo(org.apache.arrow.flight.sql.impl.FlightSql.SqlInfo...)
.bitmask
points to the specified enumInstance
.public static long createBitmaskFromEnums(com.google.protobuf.ProtocolMessageEnum... enums)
enums
.enums
- the ProtocolMessageEnum
instances to represent as bitmask.public static long createBitmaskFromEnums(Collection<com.google.protobuf.ProtocolMessageEnum> enums)
enums
.enums
- the ProtocolMessageEnum
instances to represent as bitmask.Copyright © 2023 The Apache Software Foundation. All rights reserved.