Package io.deephaven.enterprise.iceberg
Class IcebergEndpoint
java.lang.Object
io.deephaven.enterprise.iceberg.IcebergEndpoint
- Direct Known Subclasses:
IcebergEndpoint.Named
The complete configuration required to locate an Iceberg table within a
Catalog
and then fetch the Iceberg table into Deephaven.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA Builder object for construction of aIcebergEndpoint.static classAnIcebergEndpointthat is also named. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull IcebergEndpointCreate a newIcebergEndpointfrom the encoded JSON string.@NotNull IcebergConfigurationGet the configuration parameters needed to connect to an IcebergCatalogand fetch IcebergTables.@NotNull IcebergDataInstructionsGet theIcebergDataInstructionsthat can be used to create appropriate instructions for use withIcebergReadInstructions.Builder.dataInstructions(Object).@NotNull StringtoJson()Get this object encoded as a JSON string.@NotNull IcebergEndpoint.NamedGet a copy of this endpoint, decorated with a name.
-
Method Details
-
getConfiguration
Get the configuration parameters needed to connect to an IcebergCatalogand fetch IcebergTables.- Returns:
- the
IcebergConfigurationobject.
-
getDataInstructions
Get theIcebergDataInstructionsthat can be used to create appropriate instructions for use withIcebergReadInstructions.Builder.dataInstructions(Object).- Returns:
- the
IcebergDataInstructions
-
withName
Get a copy of this endpoint, decorated with a name.- Parameters:
name- the name to decorate with.- Returns:
- a new
IcebergEndpoint.Namedwith the samecataloganddata instructions.
-
toJson
Get this object encoded as a JSON string.- Returns:
- this object encoded as JSON.
- Throws:
IOException- if the object could not be encoded for some reason.
-
fromJson
@NotNull public static @NotNull IcebergEndpoint fromJson(@NotNull @NotNull String jsonString) throws IOException Create a newIcebergEndpointfrom the encoded JSON string.- Parameters:
jsonString- the encoded object.- Returns:
- a new
IcebergEndpoint - Throws:
IOException- if the JSON string could not be decoded.
-