oss-torch-connector/osstorchconnector/oss_iterable_dataset.py [88:116]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            transform=transform, cred_provider=cred_provider
        )

    @classmethod
    def from_prefix(
        cls,
        oss_uri: str,
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssIterableDataset using the OSS URI provided.

        Args:
          oss_uri(str): An OSS URI (prefix) of the object(s) desired. Objects matching the prefix will be included in the returned dataset.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssIterableDataset: An IterableStyle dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_prefix")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



oss-torch-connector/osstorchconnector/oss_map_dataset.py [104:132]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            transform=transform, cred_provider=cred_provider
        )

    @classmethod
    def from_prefix(
        cls,
        oss_uri: str,
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssMapDataset using the OSS URI provided.

        Args:
          oss_uri(str): An OSS URI (prefix) of the object(s) desired. Objects matching the prefix will be included in the returned dataset.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssMapDataset: A Map-Style dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_prefix")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



