Class IcebergUtils
java.lang.Object
org.gridgain.internal.sql.copy.iceberg.IcebergUtils
Utility class for working with iceberg properties/types/schema/etc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectConverts object to gridgain type if needed.static org.apache.iceberg.SchemaasIcebergSchema(List<org.apache.ignite.internal.schema.Column> ggColumns) GridGain columns metadata as iceberg schema.static ObjectasIcebergValue(@Nullable Object o) Converts object to iceberg type if needed.Iceberg record as list.static org.apache.iceberg.data.GenericRecordGridGain row as iceberg record.static org.apache.hadoop.conf.ConfigurationcombineConfiguration(Map<String, String> properties) Creates new instance with of hadoop configuration with some properties if absent.combineProperties(org.apache.ignite.internal.sql.engine.prepare.copy.CopyLocationPath location, Map<String, String> properties) Creates new instance of catalog properties and computes new entries if absent.
-
Method Details
-
combineProperties
public static Map<String,String> combineProperties(org.apache.ignite.internal.sql.engine.prepare.copy.CopyLocationPath location, Map<String, String> properties) Creates new instance of catalog properties and computes new entries if absent.- Returns:
- New properties map.
-
combineConfiguration
public static org.apache.hadoop.conf.Configuration combineConfiguration(Map<String, String> properties) Creates new instance with of hadoop configuration with some properties if absent.- Parameters:
properties- Catalog properties.- Returns:
- New hadoop configuration.
-
asList
Iceberg record as list. -
asRecord
public static org.apache.iceberg.data.GenericRecord asRecord(List<?> row, org.apache.iceberg.data.GenericRecord rec, org.apache.iceberg.Schema schema) GridGain row as iceberg record. -
asIcebergSchema
public static org.apache.iceberg.Schema asIcebergSchema(List<org.apache.ignite.internal.schema.Column> ggColumns) GridGain columns metadata as iceberg schema. -
asIcebergValue
Converts object to iceberg type if needed. -
asGridGainValue
Converts object to gridgain type if needed.
-