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 interface
A Builder object for construction of aIcebergEndpoint
.static class
AnIcebergEndpoint
that is also named. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull IcebergEndpoint
Create a newIcebergEndpoint
from the encoded JSON string.@NotNull IcebergConfiguration
Get the configuration parameters needed to connect to an IcebergCatalog
and fetch IcebergTable
s.@NotNull IcebergDataInstructions
Get theIcebergDataInstructions
that can be used to create appropriate instructions for use withIcebergReadInstructions.Builder.dataInstructions(Object)
.@NotNull String
toJson()
Get this object encoded as a JSON string.@NotNull IcebergEndpoint.Named
Get a copy of this endpoint, decorated with a name.
-
Method Details
-
getConfiguration
Get the configuration parameters needed to connect to an IcebergCatalog
and fetch IcebergTable
s.- Returns:
- the
IcebergConfiguration
object.
-
getDataInstructions
Get theIcebergDataInstructions
that 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.Named
with the samecatalog
anddata 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 newIcebergEndpoint
from the encoded JSON string.- Parameters:
jsonString
- the encoded object.- Returns:
- a new
IcebergEndpoint
- Throws:
IOException
- if the JSON string could not be decoded.
-