java.lang.Object
org.apache.arrow.flight.sql.FlightSqlUtils
Utilities to work with Flight SQL semantics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ActionType>static final ActionTypestatic final ActionTypestatic final ActionTypestatic final ActionTypestatic final ActionTypestatic final ActionTypestatic final ActionTypestatic final ActionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.protobuf.AnyparseOrThrow(byte[] source) Helper to parseAnyobjects to the specific protobuf object.static <T extends com.google.protobuf.Message>
TunpackAndParseOrThrow(byte[] source, Class<T> as) Helper to parse and unpackAnyobjects to the specific protobuf object.static <T extends com.google.protobuf.Message>
TunpackOrThrow(com.google.protobuf.Any source, Class<T> as) Helper to unpackAnyobjects to the specific protobuf object.
-
Field Details
-
FLIGHT_SQL_BEGIN_SAVEPOINT
-
FLIGHT_SQL_BEGIN_TRANSACTION
-
FLIGHT_SQL_CREATE_PREPARED_STATEMENT
-
FLIGHT_SQL_CLOSE_PREPARED_STATEMENT
-
FLIGHT_SQL_CREATE_PREPARED_SUBSTRAIT_PLAN
-
FLIGHT_SQL_CANCEL_QUERY
-
FLIGHT_SQL_END_SAVEPOINT
-
FLIGHT_SQL_END_TRANSACTION
-
FLIGHT_SQL_ACTIONS
-
-
Constructor Details
-
FlightSqlUtils
public FlightSqlUtils()
-
-
Method Details
-
parseOrThrow
public static com.google.protobuf.Any parseOrThrow(byte[] source) Helper to parseAnyobjects to the specific protobuf object.- Parameters:
source- the raw bytes source value.- Returns:
- the materialized protobuf object.
-
unpackOrThrow
public static <T extends com.google.protobuf.Message> T unpackOrThrow(com.google.protobuf.Any source, Class<T> as) Helper to unpackAnyobjects to the specific protobuf object.- Type Parameters:
T- the class to unpack as.- Parameters:
source- the parsed Source value.as- the class to unpack as.- Returns:
- the materialized protobuf object.
-
unpackAndParseOrThrow
public static <T extends com.google.protobuf.Message> T unpackAndParseOrThrow(byte[] source, Class<T> as) Helper to parse and unpackAnyobjects to the specific protobuf object.- Type Parameters:
T- the class to unpack as.- Parameters:
source- the raw bytes source value.as- the class to unpack as.- Returns:
- the materialized protobuf object.
-