Package io.deephaven.enterprise
Class DbGrpcHelpers
java.lang.Object
io.deephaven.enterprise.DbGrpcHelpers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ExportedObjectInfoMessage
makeExportedObjectInfoMessage
(String name, ExportedObjectInfo type) Make anExportedObjectInfoMessage
from a name andExportedObjectInfo
static TableDefinition
Deserialize aTableDefinition
from gRPC.
-
Constructor Details
-
DbGrpcHelpers
public DbGrpcHelpers()
-
-
Method Details
-
makeExportedObjectInfoMessage
public static ExportedObjectInfoMessage makeExportedObjectInfoMessage(@NotNull String name, @NotNull ExportedObjectInfo type) throws UncheckedDeephavenException Make anExportedObjectInfoMessage
from a name andExportedObjectInfo
- Parameters:
name
- the name of the objecttype
- theExportedObjectInfo
- Returns:
- a new
ExportedObjectInfoMessage
- Throws:
UncheckedDeephavenException
- if a problem occurred converting the message to gRPC
-
makeTableDefinition
public static TableDefinition makeTableDefinition(@NotNull ExportedObjectInfoMessage message) throws UncheckedDeephavenException Deserialize aTableDefinition
from gRPC.- Parameters:
message
- the message to deserialize- Returns:
- a new
TableDefinition
or null if the message does not contain a table definition, or the table definition cannot be deserialized (for example a missing custom class) - Throws:
UncheckedDeephavenException
-