Class FileIOUtil

java.lang.Object
org.apache.polaris.service.catalog.io.FileIOUtil

public class FileIOUtil extends Object
  • Method Details

    • findStorageInfoFromHierarchy

      public static Optional<org.apache.polaris.core.entity.PolarisEntity> findStorageInfoFromHierarchy(org.apache.polaris.core.persistence.PolarisResolvedPathWrapper resolvedStorageEntity)
      Finds storage configuration information in the hierarchy of the resolved storage entity.

      This method starts at the "leaf" level (e.g., table) and walks "upwards" through namespaces in the hierarchy to the "root." It searches for the first entity containing storage config properties, identified using a key from PolarisEntityConstants.getStorageConfigInfoPropertyName().

      Parameters:
      resolvedStorageEntity - the resolved entity wrapper containing the hierarchical path
      Returns:
      an Optional containing the entity with storage config, or empty if not found