iceberg-python の API リファレンス
iceberg-python (apache/iceberg-python) の公開 API 359 件 —— クラス 124、関数 88、メソッド 147。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: apache/iceberg-python
| 種別 | 件数 |
|---|---|
| クラス | 124 |
| 関数 | 88 |
| メソッド | 147 |
API 一覧
class
pyiceberg.avro.codecs.codec.CodecAbstract base class for all Avro codec classes.
class
pyiceberg.avro.decoder.BinaryDecoderDecodes bytes into Python physical primitives.
method
pyiceberg.avro.decoder.BinaryDecoder.read(n:int) -> bytesRead n bytes.
method
pyiceberg.avro.decoder.BinaryDecoder.read_boolean() -> boolRead a value from the stream as a boolean.
method
pyiceberg.avro.decoder.BinaryDecoder.read_double() -> floatRead a value from the stream as a double.
method
pyiceberg.avro.decoder.BinaryDecoder.read_float() -> floatRead a value from the stream as a float.
method
pyiceberg.avro.decoder.BinaryDecoder.read_int() -> intRead an int/long value.
method
pyiceberg.avro.decoder.BinaryDecoder.read_ints(n:int) -> tuple[int, ...]Read a list of integers.
method
pyiceberg.avro.decoder.BinaryDecoder.read_utf8() -> strRead an utf-8 encoded string from the stream.
method
pyiceberg.avro.decoder.BinaryDecoder.skip(n:int) -> NoneSkip n bytes.
method
pyiceberg.avro.decoder.BinaryDecoder.tell() -> intReturn the current position.
class
pyiceberg.avro.decoder.StreamingBinaryDecoderDecodes bytes into Python physical primitives.
method
pyiceberg.avro.decoder.StreamingBinaryDecoder.read(n:int) -> bytesRead n bytes.
method
pyiceberg.avro.decoder.StreamingBinaryDecoder.tell() -> intReturn the current stream position.
class
pyiceberg.avro.encoder.BinaryEncoderEncodes Python physical types into bytes.
method
pyiceberg.avro.encoder.BinaryEncoder.write_bytes(b:bytes) -> NoneBytes are encoded as a long followed by that many bytes of data.
method
pyiceberg.avro.encoder.BinaryEncoder.write_double(f:float) -> NoneWrite a double as 8 bytes.
method
pyiceberg.avro.encoder.BinaryEncoder.write_float(f:float) -> NoneWrite a float as 4 bytes.
method
pyiceberg.avro.encoder.BinaryEncoder.write_int(integer:int) -> NoneInteger and long values are written using variable-length zig-zag coding.
method
pyiceberg.avro.encoder.BinaryEncoder.write_unknown(_:Any) -> NoneNulls are written as 0 bytes in avro, so we do nothing.
method
pyiceberg.avro.encoder.BinaryEncoder.write_uuid(uuid:UUID) -> NoneWrite UUID as a fixed[16].
class
pyiceberg.avro.reader.BinaryReaderRead a binary value.
class
pyiceberg.avro.reader.DateReaderReads a day granularity date from the stream.
class
pyiceberg.avro.reader.DecimalReaderReads a value as a decimal.
class
pyiceberg.avro.reader.TimeReaderReads a microsecond granularity timestamp from the stream.
class
pyiceberg.avro.reader.TimestampReaderReads a microsecond granularity timestamp from the stream.
class
pyiceberg.avro.resolver.ConstructWriterConstruct a writer tree from an Iceberg schema.
method
pyiceberg.avro.resolver.ConstructWriter.visit_geography(geography_type:'GeographyType') -> WriterGeography is written as WKB bytes in Avro.
method
pyiceberg.avro.resolver.ConstructWriter.visit_geometry(geometry_type:'GeometryType') -> WriterGeometry is written as WKB bytes in Avro.
class
pyiceberg.avro.resolver.EnumReaderAn Enum reader to wrap primitive values into an Enum.
func
pyiceberg.avro.resolver.construct_reader(file_schema:Schema | IcebergType, read_types:dict[int, Callable[..., StructProtocol]]=EMPTY_DICT) -> ReaderConstruct a reader from a file schema.
func
pyiceberg.avro.resolver.construct_writer(file_schema:Schema | IcebergType) -> WriterConstruct a writer from a file schema.
func
pyiceberg.avro.resolver.resolve_writer(record_schema:Schema | IcebergType, file_schema:Schema | IcebergType) -> WriterResolve the file and read schema to produce a reader.
class
pyiceberg.avro.writer.BinaryWriterVariable byte length writer.
method
pyiceberg.catalog.Catalog.close() -> NoneClose the catalog and release any resources.
method
pyiceberg.catalog.Catalog.commit_table(table:Table, requirements:tuple[TableRequirement, ...], updates:tuple[TableUpdate, ...]) -> CommitTableResponseCommit updates to a table.
method
pyiceberg.catalog.Catalog.create_namespace(namespace:str | Identifier, properties:Properties=EMPTY_DICT) -> NoneCreate a namespace in the catalog.
method
pyiceberg.catalog.Catalog.create_namespace_if_not_exists(namespace:str | Identifier, properties:Properties=EMPTY_DICT) -> NoneCreate a namespace if it does not exist.
method
pyiceberg.catalog.Catalog.create_table(identifier:str | Identifier, schema:Schema | pa.Schema, location:str | None=None, partition_spec:PartitionSpec=UNPARTITIONED_PARTITION_SPEC, sort_order:SortOrder=UNSORTED_SORT_ORDER, properties:Properties=EMPTY_DICT) -> TableCreate a table.
method
pyiceberg.catalog.Catalog.create_view(identifier:str | Identifier, schema:Schema | pa.Schema, view_version:ViewVersion, location:str | None=None, properties:Properties=EMPTY_DICT) -> ViewCreate a view.
method
pyiceberg.catalog.Catalog.drop_namespace(namespace:str | Identifier) -> NoneDrop a namespace.
method
pyiceberg.catalog.Catalog.drop_table(identifier:str | Identifier) -> NoneDrop a table.
method
pyiceberg.catalog.Catalog.drop_view(identifier:str | Identifier) -> NoneDrop a view.
method
pyiceberg.catalog.Catalog.identifier_to_tuple(identifier:str | Identifier) -> IdentifierParse an identifier to a tuple.
method
pyiceberg.catalog.Catalog.list_namespaces(namespace:str | Identifier=()) -> list[Identifier]List namespaces from the given namespace.
method
pyiceberg.catalog.Catalog.list_tables(namespace:str | Identifier) -> list[Identifier]List tables under the given namespace in the catalog.
method
pyiceberg.catalog.Catalog.list_views(namespace:str | Identifier) -> list[Identifier]List views under the given namespace in the catalog.
method
pyiceberg.catalog.Catalog.load_namespace_properties(namespace:str | Identifier) -> PropertiesGet properties for a namespace.
method
pyiceberg.catalog.Catalog.load_table(identifier:str | Identifier) -> TableLoad the table's metadata and returns the table instance.
method
pyiceberg.catalog.Catalog.load_view(identifier:str | Identifier) -> ViewLoad the view's metadata and returns the view instance.
method
pyiceberg.catalog.Catalog.namespace_exists(namespace:str | Identifier) -> boolCheck if a namespace exists.
method
pyiceberg.catalog.Catalog.namespace_from(identifier:str | Identifier) -> IdentifierExtract table namespace from a table identifier.
method
pyiceberg.catalog.Catalog.namespace_to_string(identifier:str | Identifier, err:type[ValueError] | type[NoSuchNamespaceError]=ValueError) -> strTransform a namespace identifier into a string.
method
pyiceberg.catalog.Catalog.purge_table(identifier:str | Identifier) -> NoneDrop a table and purge all data and metadata files.
method
pyiceberg.catalog.Catalog.register_table(identifier:str | Identifier, metadata_location:str, overwrite:bool=False) -> TableRegister a new table using existing metadata.
method
pyiceberg.catalog.Catalog.register_view(identifier:str | Identifier, metadata_location:str) -> ViewRegister a new view using existing metadata.
method
pyiceberg.catalog.Catalog.rename_table(from_identifier:str | Identifier, to_identifier:str | Identifier) -> TableRename a fully classified table name.
method
pyiceberg.catalog.Catalog.table_exists(identifier:str | Identifier) -> boolCheck if a table exists.
method
pyiceberg.catalog.Catalog.table_name_from(identifier:str | Identifier) -> strExtract table name from a table identifier.
method
pyiceberg.catalog.Catalog.view_exists(identifier:str | Identifier) -> boolCheck if a view exists.
func
pyiceberg.catalog.delete_data_files(io:FileIO, manifests_to_delete:list[ManifestFile]) -> NoneDelete data files linked to given manifests.
func
pyiceberg.catalog.delete_files(io:FileIO, files_to_delete:set[str], file_type:str) -> NoneDelete files.
func
pyiceberg.catalog.infer_catalog_type(name:str, catalog_properties:RecursiveDict) -> CatalogType | NoneTry to infer the type based on the dict.
func
pyiceberg.catalog.load_catalog(name:str | None=None, **properties:str | None) -> CatalogLoad the catalog based on the properties.
class
pyiceberg.catalog.rest.auth.LegacyOAuth2AuthManagerLegacy OAuth2 AuthManager implementation.
class
pyiceberg.catalog.rest.auth.NoopAuthManagerAuth Manager implementation with no auth.
class
pyiceberg.catalog.rest.scan_planning.CountMapMap of field IDs to counts.
class
pyiceberg.catalog.rest.scan_planning.FetchScanTasksRequestRequest body for fetching scan tasks endpoint.
class
pyiceberg.catalog.rest.scan_planning.PlanCancelledPlanning was cancelled.
class
pyiceberg.catalog.rest.scan_planning.PlanCompletedCompleted scan plan result.
class
pyiceberg.catalog.rest.scan_planning.PlanFailedPlanning failed with error.
class
pyiceberg.catalog.rest.scan_planning.PlanSubmittedScan plan submitted, poll for completion.
class
pyiceberg.catalog.rest.scan_planning.PlanTableScanRequestRequest body for planning a REST scan.
class
pyiceberg.catalog.rest.scan_planning.RESTContentFileBase model for data and delete files from REST API.
class
pyiceberg.catalog.rest.scan_planning.RESTDataFileData file from REST API.
class
pyiceberg.catalog.rest.scan_planning.RESTEqualityDeleteFileEquality delete file from REST API.
class
pyiceberg.catalog.rest.scan_planning.RESTFileScanTaskA file scan task from the REST server.
class
pyiceberg.catalog.rest.scan_planning.RESTPositionDeleteFilePosition delete file from REST API.
class
pyiceberg.catalog.rest.scan_planning.ScanTasksContainer for scan tasks returned by the server.
class
pyiceberg.catalog.rest.scan_planning.StorageCredentialStorage credential for accessing content files.
class
pyiceberg.catalog.sql.SqlCatalogImplementation of a SQL based catalog.
method
pyiceberg.catalog.sql.SqlCatalog.close() -> NoneClose the catalog and release database connections.
method
pyiceberg.catalog.sql.SqlCatalog.commit_table(table:Table, requirements:tuple[TableRequirement, ...], updates:tuple[TableUpdate, ...]) -> CommitTableResponseCommit updates to a table.
method
pyiceberg.catalog.sql.SqlCatalog.create_namespace(namespace:str | Identifier, properties:Properties=EMPTY_DICT) -> NoneCreate a namespace in the catalog.
method
pyiceberg.catalog.sql.SqlCatalog.drop_namespace(namespace:str | Identifier) -> NoneDrop a namespace.
method
pyiceberg.catalog.sql.SqlCatalog.drop_table(identifier:str | Identifier) -> NoneDrop a table.
method
pyiceberg.catalog.sql.SqlCatalog.list_namespaces(namespace:str | Identifier=()) -> list[Identifier]List namespaces from the given namespace.
method
pyiceberg.catalog.sql.SqlCatalog.list_tables(namespace:str | Identifier) -> list[Identifier]List tables under the given namespace in the catalog.
method
pyiceberg.catalog.sql.SqlCatalog.load_namespace_properties(namespace:str | Identifier) -> PropertiesGet properties for a namespace.
method
pyiceberg.catalog.sql.SqlCatalog.load_table(identifier:str | Identifier) -> TableLoad the table's metadata and return the table instance.
method
pyiceberg.catalog.sql.SqlCatalog.register_table(identifier:str | Identifier, metadata_location:str, overwrite:bool=False) -> TableRegister a new table using existing metadata.
method
pyiceberg.catalog.sql.SqlCatalog.rename_table(from_identifier:str | Identifier, to_identifier:str | Identifier) -> TableRename a fully classified table name.
func
pyiceberg.cli.console.create() -> NoneOperation to create a namespace.
func
pyiceberg.cli.console.describe(ctx:Context, entity:Literal['name', 'namespace', 'table'], identifier:str) -> NoneDescribe a namespace or a table.
func
pyiceberg.cli.console.drop() -> NoneOperations to drop a namespace or table.
func
pyiceberg.cli.console.files(ctx:Context, identifier:str, history:bool) -> NoneList all the files of the table.
func
pyiceberg.cli.console.get() -> NoneFetch properties on tables/namespaces.
func
pyiceberg.cli.console.get_namespace(ctx:Context, identifier:str, property_name:str) -> NoneFetch properties on a namespace.
func
pyiceberg.cli.console.get_table(ctx:Context, identifier:str, property_name:str) -> NoneFetch properties on a table.
func
pyiceberg.cli.console.list(ctx:Context, parent:str | None) -> NoneList tables or namespaces.
func
pyiceberg.cli.console.list_refs(ctx:Context, identifier:str, type:str, verbose:bool) -> NoneList all the refs in the provided table.
func
pyiceberg.cli.console.location(ctx:Context, identifier:str) -> NoneReturn the location of the table.
func
pyiceberg.cli.console.namespace(ctx:Context, identifier:str) -> NoneCreate a namespace.
func
pyiceberg.cli.console.properties() -> NoneProperties on tables/namespaces.
func
pyiceberg.cli.console.remove() -> NoneRemove a property from tables/namespaces.
func
pyiceberg.cli.console.rename(ctx:Context, from_identifier:str, to_identifier:str) -> NoneRename a table.
func
pyiceberg.cli.console.schema(ctx:Context, identifier:str) -> NoneGet the schema of the table.
func
pyiceberg.cli.console.set() -> NoneSet a property on tables/namespaces.
func
pyiceberg.cli.console.spec(ctx:Context, identifier:str) -> NoneReturn the partition spec of the table.
func
pyiceberg.cli.console.table(ctx:Context, identifier:str) -> NoneDrop a table.
func
pyiceberg.cli.console.uuid(ctx:Context, identifier:str) -> NoneReturn the UUID of the table.
func
pyiceberg.cli.console.version(ctx:Context) -> NonePrint the installed pyiceberg package version.
class
pyiceberg.cli.output.ConsoleOutputWrites to the console.
class
pyiceberg.cli.output.JsonOutputWrites json to stdout.
class
pyiceberg.cli.output.JsonOutput.FauxTableJust to encode it using Pydantic.
class
pyiceberg.cli.output.OutputOutput interface for exporting.
func
pyiceberg.conversions.from_bytes(primitive_type:PrimitiveType, b:bytes) -> LConvert bytes to a built-in python value.
func
pyiceberg.conversions.from_json(primitive_type:PrimitiveType, val:Any) -> LConvert JSON value types into built-in python values.
func
pyiceberg.conversions.to_bytes(primitive_type:PrimitiveType, _:bool | bytes | Decimal | date | datetime | float | int | str | time | uuid.UUID) -> bytesConvert a built-in python value to bytes.
func
pyiceberg.conversions.to_json(primitive_type:PrimitiveType, val:Any) -> LConvert built-in python values into JSON value types.
class
pyiceberg.exceptions.BadRequestErrorRaises when an invalid request is being made.
class
pyiceberg.exceptions.CommitFailedExceptionCommit failed, refresh and try again.
class
pyiceberg.exceptions.CommitStateUnknownExceptionCommit failed due to unknown reason.
class
pyiceberg.exceptions.NamespaceNotEmptyErrorRaised when a name-space being dropped is not empty.
class
pyiceberg.exceptions.NoSuchNamespaceErrorRaised when a referenced name-space is not found.
class
pyiceberg.exceptions.NoSuchPlanTaskErrorRaised when a scan plan task is not found.
class
pyiceberg.exceptions.NoSuchPropertyExceptionWhen a property is missing.
class
pyiceberg.exceptions.NoSuchTableErrorRaises when the table can't be found in the REST catalog.
class
pyiceberg.exceptions.NoSuchViewErrorRaises when the view can't be found in the REST catalog.
class
pyiceberg.exceptions.NotInstalledErrorWhen an optional dependency is not installed.
class
pyiceberg.exceptions.OAuthErrorRaises when there is an error with the OAuth call.
class
pyiceberg.exceptions.RESTErrorRaises when there is an unknown response from the REST Catalog.
class
pyiceberg.exceptions.ServiceUnavailableErrorRaises when the service doesn't respond.
class
pyiceberg.exceptions.SignErrorRaises when unable to sign a S3 request.
class
pyiceberg.exceptions.UnauthorizedErrorRaises when you don't have the proper authorization.
class
pyiceberg.exceptions.ValidationErrorRaises when there is an issue with the schema.
class
pyiceberg.exceptions.ValidationExceptionRaised when validation fails.
class
pyiceberg.exceptions.WaitingForLockExceptionNeed to wait for a lock, try again.
class
pyiceberg.expressions.AlwaysFalseFALSE expression.
class
pyiceberg.expressions.AlwaysTrueTRUE expression.
class
pyiceberg.expressions.AndAND operation expression - logical conjunction.
class
pyiceberg.expressions.BooleanExpressionAn expression that evaluates to a boolean.
class
pyiceberg.expressions.BoundRepresents a bound value expression.
class
pyiceberg.expressions.BoundReferenceA reference bound to a field in a schema.
class
pyiceberg.expressions.BoundTermRepresents a bound term.
method
pyiceberg.expressions.BoundTerm.ref() -> BoundReferenceReturn the bound reference.
class
pyiceberg.expressions.NotNOT operation expression - logical negation.
class
pyiceberg.expressions.OrOR operation expression - logical disjunction.
class
pyiceberg.expressions.ReferenceA reference not yet bound to a field in a schema.
method
pyiceberg.expressions.Reference.bind(schema:Schema, case_sensitive:bool=True) -> BoundReferenceBind the reference to an Iceberg schema.
class
pyiceberg.expressions.TermA simple expression that evaluates to a value.
class
pyiceberg.expressions.UnboundRepresents an unbound value expression.
class
pyiceberg.expressions.UnboundTermRepresents an unbound term.
func
pyiceberg.expressions.literals.literal(value:L) -> Literal[L]Construct an Iceberg Literal based on Python primitive data type.
func
pyiceberg.expressions.parser.parse(expr:str) -> BooleanExpressionParse a boolean expression.
class
pyiceberg.io.FileIOA base class for FileIO implementations.
method
pyiceberg.io.FileIO.delete(location:str | InputFile | OutputFile) -> NoneDelete the file at the given path.
class
pyiceberg.io.InputFileA base class for InputFile implementations.
method
pyiceberg.io.InputFile.exists() -> boolCheck whether the location exists.
method
pyiceberg.io.InputFile.location() -> strThe fully-qualified location of the input file.
method
pyiceberg.io.InputFile.open(seekable:bool=True) -> InputStreamReturn an object that matches the InputStream protocol.
class
pyiceberg.io.OutputFileA base class for OutputFile implementations.
method
pyiceberg.io.OutputFile.create(overwrite:bool=False) -> OutputStreamReturn an object that matches the OutputStream protocol.
method
pyiceberg.io.OutputFile.exists() -> boolCheck whether the location exists.
method
pyiceberg.io.OutputFile.location() -> strThe fully-qualified location of the output file.
class
pyiceberg.io.fileformat.FileFormatFactoryRegistry of FileFormatModel implementations.
class
pyiceberg.io.fileformat.FileFormatModelRepresents a file format's capabilities.
method
pyiceberg.io.fileformat.FileFormatModel.add_field_metadata(field:NestedField, metadata:dict[bytes, bytes], include_field_ids:bool) -> NoneAdd format-specific Arrow field metadata.
method
pyiceberg.io.fileformat.FileFormatModel.file_extension() -> strReturn file extension without dot, e.g.
class
pyiceberg.io.fileformat.FileFormatWriterWrites data to a single file in a specific format.
method
pyiceberg.io.fileformat.FileFormatWriter.close() -> DataFileStatisticsFinalize the file and return statistics.
method
pyiceberg.io.fileformat.FileFormatWriter.result() -> DataFileStatisticsReturn statistics from a previous close() call.
method
pyiceberg.io.fileformat.FileFormatWriter.write(table:pa.Table) -> NoneWrite a batch of data.
class
pyiceberg.io.fsspec.FsspecFileIOA FileIO implementation that uses fsspec.
method
pyiceberg.io.fsspec.FsspecFileIO.delete(location:str | InputFile | OutputFile) -> NoneDelete the file at the given location.
method
pyiceberg.io.fsspec.FsspecFileIO.get_fs(scheme:str, hostname:str | None=None) -> AbstractFileSystemGet a filesystem for a specific scheme, cached per thread.
class
pyiceberg.io.fsspec.FsspecInputFileAn input file implementation for the FsspecFileIO.
method
pyiceberg.io.fsspec.FsspecInputFile.exists() -> boolCheck whether the location exists.
method
pyiceberg.io.fsspec.FsspecInputFile.open(seekable:bool=True) -> InputStreamCreate an input stream for reading the contents of the file.
class
pyiceberg.io.fsspec.FsspecOutputFileAn output file implementation for the FsspecFileIO.
method
pyiceberg.io.fsspec.FsspecOutputFile.create(overwrite:bool=False) -> OutputStreamCreate an output stream for reading the contents of the file.
method
pyiceberg.io.fsspec.FsspecOutputFile.exists() -> boolCheck whether the location exists.
class
pyiceberg.io.fsspec.S3RequestSignerAbstract base class for S3 request signers.
class
pyiceberg.io.pyarrow.ParquetFormatModelFormat model for Apache Parquet.
class
pyiceberg.io.pyarrow.ParquetFormatWriterWrites Arrow tables to a Parquet file.
func
pyiceberg.io.pyarrow.compute_statistics_plan(schema:Schema, table_properties:dict[str, str]) -> dict[int, StatisticsCollector]Compute the statistics plan for all columns.
func
pyiceberg.io.pyarrow.parquet_path_to_id_mapping(schema:Schema) -> dict[str, int]Compute the mapping of parquet column path to Iceberg ID.
func
pyiceberg.manifest.clear_manifest_cache() -> NoneClear cached ManifestFile objects.
func
pyiceberg.manifest.read_manifest_list(input_file:InputFile) -> Iterator[ManifestFile]Read the manifests from the manifest list.
method
pyiceberg.schema.Accessor.get(container:StructProtocol) -> AnyReturn the value at self.position in `container`.
class
pyiceberg.schema.SchemaA table Schema.
method
pyiceberg.schema.Schema.accessor_for_field(field_id:int) -> AccessorFind a schema position accessor given a field ID.
method
pyiceberg.schema.Schema.as_arrow() -> pa.SchemaReturn the schema as an Arrow schema.
method
pyiceberg.schema.Schema.as_struct() -> StructTypeReturn the schema as a struct.
method
pyiceberg.schema.Schema.columns() -> tuple[NestedField, ...]A tuple of the top-level fields.
method
pyiceberg.schema.Schema.field_ids() -> set[int]Return the IDs of the current schema.
method
pyiceberg.schema.Schema.find_column_name(column_id:int) -> str | NoneFind a column name given a column ID.
method
pyiceberg.schema.Schema.find_field(name_or_id:str | int, case_sensitive:bool=True) -> NestedFieldFind a field using a field name or field ID.
method
pyiceberg.schema.Schema.find_type(name_or_id:str | int, case_sensitive:bool=True) -> IcebergTypeFind a field type using a field name or field ID.
method
pyiceberg.schema.Schema.identifier_field_names() -> set[str]Return the names of the identifier fields.
method
pyiceberg.schema.Schema.select(*case_sensitive:bool=True, *names:str) -> SchemaReturn a new schema instance pruned to a subset of columns.
func
pyiceberg.schema.assign_fresh_schema_ids(schema_or_type:Schema | IcebergType, next_id:Callable[[], int] | None=None) -> SchemaTraverses the schema, and sets new IDs.
func
pyiceberg.schema.index_by_id(schema_or_type:Schema | IcebergType) -> dict[int, NestedField]Generate an index of field IDs to NestedField instances.
func
pyiceberg.schema.index_by_name(schema_or_type:Schema | IcebergType) -> dict[str, int]Generate an index of field names to field IDs.
func
pyiceberg.schema.index_name_by_id(schema_or_type:Schema | IcebergType) -> dict[int, str]Generate an index of field IDs full field names.
func
pyiceberg.schema.make_compatible_name(name:str) -> strMake a field name compatible with Avro specification.
func
pyiceberg.schema.pre_order_visit(obj:Schema | IcebergType, visitor:PreOrderSchemaVisitor[T]) -> TApply a schema visitor to any point within a schema.
func
pyiceberg.schema.promote(file_type:IcebergType, read_type:IcebergType) -> IcebergTypePromotes reading a file type to a read type.
func
pyiceberg.schema.prune_columns(schema:Schema, selected:set[int], select_full_types:bool=True) -> SchemaPrunes a column by only selecting a set of field-ids.
func
pyiceberg.schema.sanitize_column_names(schema:Schema) -> SchemaSanitize column names to make them compatible with Avro.
func
pyiceberg.schema.visit(obj:Schema | IcebergType, visitor:SchemaVisitor[T]) -> TApply a schema visitor to any point within a schema.
method
pyiceberg.serializers.Compressor.bytes_compressor() -> Callable[[bytes], bytes]Return a function to compress bytes.
method
pyiceberg.serializers.Compressor.stream_decompressor(inp:InputStream) -> InputStreamReturn a stream decompressor.
class
pyiceberg.table.BaseScanA base class for all table scans.
method
pyiceberg.table.BaseScan.to_duckdb(table_name:str, connection:DuckDBPyConnection | None=None) -> DuckDBPyConnectionShorthand for loading the Iceberg Table in DuckDB.
method
pyiceberg.table.BaseScan.to_pandas(**kwargs:Any) -> pd.DataFrameRead a Pandas DataFrame eagerly from this Iceberg table.
method
pyiceberg.table.BaseScan.to_polars() -> pl.DataFrameRead a Polars DataFrame from this Iceberg table.
method
pyiceberg.table.BaseScan.to_ray() -> ray.data.dataset.DatasetRead a Ray Dataset eagerly from this Iceberg table.
method
pyiceberg.table.BaseScan.update(**overrides:Any) -> ACreate a copy of this table scan with updated fields.
class
pyiceberg.table.CommitTableRequestA pydantic BaseModel for a table commit request.
class
pyiceberg.table.CommitTableResponseA pydantic BaseModel for a table commit response.
class
pyiceberg.table.CreateTableTransactionA transaction that involves the creation of a new table.
method
pyiceberg.table.CreateTableTransaction.commit_transaction() -> TableCommit the changes to the catalog.
method
pyiceberg.table.FileScanTask.from_rest_response(rest_task:RESTFileScanTask, delete_files:list[RESTDeleteFile]) -> FileScanTaskConvert a RESTFileScanTask to a FileScanTask.
class
pyiceberg.table.ManifestGroupPlannerPlans the scan tasks for a group of manifests.
class
pyiceberg.table.NamespaceReference to one or more levels of a namespace.
class
pyiceberg.table.TableAn Iceberg table.
method
pyiceberg.table.Table.history() -> list[SnapshotLogEntry]Get the snapshot history of this table.
method
pyiceberg.table.Table.location() -> strReturn the table's base location.
method
pyiceberg.table.Table.location_provider() -> LocationProviderReturn the table's location provider.
method
pyiceberg.table.Table.maintenance() -> MaintenanceTableReturn the MaintenanceTable object for maintenance.
method
pyiceberg.table.Table.name() -> IdentifierReturn the identifier of this table.
method
pyiceberg.table.Table.name_mapping() -> NameMapping | NoneReturn the table's field-id NameMapping.
method
pyiceberg.table.Table.properties() -> dict[str, str]Properties of the table.
method
pyiceberg.table.Table.refresh() -> TableRefresh the current table metadata.
method
pyiceberg.table.Table.refs() -> dict[str, SnapshotRef]Return the snapshot references in the table.
method
pyiceberg.table.Table.schema() -> SchemaReturn the schema for this table.
method
pyiceberg.table.Table.schemas() -> dict[int, Schema]Return a dict of the schema of this table.
method
pyiceberg.table.Table.sort_order() -> SortOrderReturn the sort order of this table.
method
pyiceberg.table.Table.sort_orders() -> dict[int, SortOrder]Return a dict of the sort orders of this table.
method
pyiceberg.table.Table.spec() -> PartitionSpecReturn the partition spec of this table.
method
pyiceberg.table.Table.specs() -> dict[int, PartitionSpec]Return a dict the partition specs this table.
method
pyiceberg.table.Table.to_bodo() -> bd.DataFrameRead a bodo DataFrame lazily from this Iceberg table.
method
pyiceberg.table.Table.to_daft() -> daft.DataFrameRead a Daft DataFrame lazily from this Iceberg table.
method
pyiceberg.table.Table.to_polars() -> pl.LazyFrameLazily read from this Apache Iceberg table.
class
pyiceberg.table.TableIdentifierFully Qualified identifier to a table.
class
pyiceberg.table.TableScanA base class for table scans targeting a single snapshot.
method
pyiceberg.table.Transaction.commit_transaction() -> TableCommit the changes to the catalog.
method
pyiceberg.table.Transaction.remove_properties(*removals:str) -> TransactionRemove properties.
method
pyiceberg.table.Transaction.set_properties(properties:Properties=EMPTY_DICT, **kwargs:Any) -> TransactionSet properties.
method
pyiceberg.table.Transaction.update_location(location:str) -> TransactionSet the new table location.
method
pyiceberg.table.Transaction.upgrade_table_version(format_version:TableVersion) -> TransactionSet the table to a certain version.
class
pyiceberg.table.UpsertResultSummary the upsert operation.
class
pyiceberg.table.WriteTaskTask with the parameters for writing a DataFile.
class
pyiceberg.table.metadata.TableMetadataUtilHelper class for parsing TableMetadata.
class
pyiceberg.table.metadata.TableMetadataV1Represents version 1 of the Table Metadata.
method
pyiceberg.table.metadata.TableMetadataV1.construct_partition_specs(data:dict[str, Any]) -> dict[str, Any]Convert the partition_spec into partition_specs.
method
pyiceberg.table.metadata.TableMetadataV1.construct_schemas(data:dict[str, Any]) -> dict[str, Any]Convert the schema into schemas.
method
pyiceberg.table.metadata.TableMetadataV1.set_sort_orders(data:dict[str, Any]) -> dict[str, Any]Set the sort_orders if not provided.
class
pyiceberg.table.metadata.TableMetadataV2Represents version 2 of the Table Metadata.
class
pyiceberg.table.metadata.TableMetadataV3Represents version 3 of the Table Metadata.
func
pyiceberg.table.metadata.check_partition_specs(table_metadata:TableMetadata) -> TableMetadataCheck if the default-spec-id is present in partition-specs.
func
pyiceberg.table.metadata.cleanup_snapshot_id(data:dict[str, Any]) -> dict[str, Any]Run before validation.
func
pyiceberg.table.metadata.construct_refs(table_metadata:TableMetadata) -> TableMetadataSet the main branch if missing.
class
pyiceberg.table.snapshots.OperationDescribes the operation.
method
pyiceberg.table.snapshots.Snapshot.manifests(io:FileIO) -> list[ManifestFile]Return the manifests for the given snapshot.
class
pyiceberg.table.snapshots.SummaryA class that stores the summary information for a Snapshot.
class
pyiceberg.table.sorting.SortFieldSort order field.
class
pyiceberg.table.sorting.SortOrderDescribes how the data is sorted within the table.
class
pyiceberg.table.update.AssertTableUUIDThe table UUID must match the requirement's `uuid`.
class
pyiceberg.table.update.snapshot.ExpireSnapshotsExpire snapshots by ID.
method
pyiceberg.table.update.snapshot.ExpireSnapshots.by_id(snapshot_id:int) -> ExpireSnapshotsExpire a snapshot by its ID.
method
pyiceberg.table.update.snapshot.ExpireSnapshots.by_ids(snapshot_ids:list[int]) -> ExpireSnapshotsExpire multiple snapshots by their IDs.
class
pyiceberg.table.update.snapshot.ManageSnapshotsRun snapshot management operations using APIs.
method
pyiceberg.table.update.snapshot.ManageSnapshots.remove_branch(branch_name:str) -> ManageSnapshotsRemove a branch.
method
pyiceberg.table.update.snapshot.ManageSnapshots.remove_tag(tag_name:str) -> ManageSnapshotsRemove a tag.
method
pyiceberg.table.update.snapshot.ManageSnapshots.rollback_to_snapshot(snapshot_id:int) -> ManageSnapshotsRollback the table to the given snapshot id.
class
pyiceberg.table.update.statistics.UpdateStatisticsRun statistics management operations using APIs.
class
pyiceberg.transforms.BoundTransformA transform expression.
class
pyiceberg.transforms.DayTransformTransforms a datetime value into a day value.
method
pyiceberg.transforms.DayTransform.result_type(source:IcebergType) -> IcebergTypeReturn the result type of a day transform.
class
pyiceberg.transforms.HourTransformTransforms a datetime value into a hour value.
class
pyiceberg.transforms.IdentityTransformTransforms a value into itself.
class
pyiceberg.transforms.MonthTransformTransforms a datetime value into a month value.
class
pyiceberg.transforms.TransformTransform base class for concrete transforms.
class
pyiceberg.transforms.TruncateTransformA transform for truncating a value to a specified width.
class
pyiceberg.transforms.VoidTransformA transform that always returns None.
class
pyiceberg.transforms.YearTransformTransforms a datetime value into a year value.
class
pyiceberg.typedef.IcebergBaseModelThis class extends the Pydantic BaseModel to set default values by overriding them.
class
pyiceberg.types.DecimalTypeA decimal data type in Iceberg.
method
pyiceberg.types.DecimalType.precision() -> intReturn the precision of the decimal.
method
pyiceberg.types.DecimalType.scale() -> intReturn the scale of the decimal.
method
pyiceberg.types.DecimalType.ser_model() -> strSerialize the model to a string.
class
pyiceberg.types.FixedTypeA fixed data type in Iceberg.
method
pyiceberg.types.GeographyType.algorithm() -> strReturn the algorithm used for geographic calculations.
method
pyiceberg.types.GeographyType.minimum_format_version() -> TableVersionGeography type requires Iceberg format version 3.
method
pyiceberg.types.GeographyType.ser_model() -> strSerialize the model to a string.
method
pyiceberg.types.GeometryType.minimum_format_version() -> TableVersionGeometry type requires Iceberg format version 3.
method
pyiceberg.types.GeometryType.ser_model() -> strSerialize the model to a string.
class
pyiceberg.types.IcebergTypeBase type for all Iceberg Types.
class
pyiceberg.types.ListTypeA list type in Iceberg.
class
pyiceberg.types.MapTypeA map type in Iceberg.
class
pyiceberg.types.PrimitiveTypeBase class for all Iceberg Primitive Types.
class
pyiceberg.types.StructTypeA struct type in Iceberg.
func
pyiceberg.types.strtobool(val:str) -> boolConvert a string representation of truth to true (1) or false (0).
func
pyiceberg.types.transform_dict_value_to_str(dict:dict[str, Any]) -> dict[str, str]Transform all values in the dictionary to string.
method
pyiceberg.utils.config.Config.get_default_catalog_name() -> strReturn the default catalog name.
func
pyiceberg.utils.config.merge_config(lhs:RecursiveDict, rhs:RecursiveDict) -> RecursiveDictMerge right-hand side into the left-hand side.
func
pyiceberg.utils.datetime.date_str_to_days(date_str:str) -> intConvert an ISO-8601 formatted date to days from 1970-01-01.
func
pyiceberg.utils.datetime.date_to_days(date_val:date) -> intConvert a Python date object to days from 1970-01-01.
func
pyiceberg.utils.datetime.datetime_to_micros(dt:datetime) -> intConvert a datetime to microseconds from 1970-01-01T00:00:00.000000.
func
pyiceberg.utils.datetime.datetime_to_millis(dt:datetime) -> intConvert a datetime to milliseconds from 1970-01-01T00:00:00.000000.
func
pyiceberg.utils.datetime.days_to_date(days:int) -> dateCreate a date from the number of days from 1970-01-01.
func
pyiceberg.utils.datetime.micros_to_days(timestamp:int) -> intConvert a timestamp in microseconds to a date in days.
func
pyiceberg.utils.datetime.micros_to_hours(micros:int) -> intConvert a timestamp in microseconds to hours from 1970-01-01T00:00.
func
pyiceberg.utils.datetime.micros_to_time(micros:int) -> timeConvert a timestamp in microseconds to a time.
func
pyiceberg.utils.datetime.micros_to_timestamp(micros:int) -> datetimeConvert microseconds from epoch to a timestamp.
func
pyiceberg.utils.datetime.micros_to_timestamptz(micros:int) -> datetimeConvert microseconds from epoch to an utc timestamp.
func
pyiceberg.utils.datetime.millis_to_datetime(millis:int) -> datetimeConvert milliseconds from epoch to a timestamp.
func
pyiceberg.utils.datetime.nanos_to_days(nanos:int) -> intConvert a timestamp in nanoseconds to a date in days.
func
pyiceberg.utils.datetime.nanos_to_hours(nanos:int) -> intConvert a timestamp in nanoseconds to hours from 1970-01-01T00:00.
func
pyiceberg.utils.datetime.nanos_to_time(nanos:int) -> timeConvert a timestamp in nanoseconds to a microsecond precision time.
func
pyiceberg.utils.datetime.nanos_to_timestamp(nanos:int) -> datetimeConvert nanoseconds from epoch to a microsecond timestamp.
func
pyiceberg.utils.datetime.time_str_to_micros(time_str:str) -> intConvert an ISO-8601 formatted time to microseconds from midnight.
func
pyiceberg.utils.datetime.time_str_to_nanos(time_str:str) -> intConvert an ISO-8601 formatted time to nanoseconds from midnight.
func
pyiceberg.utils.datetime.time_to_micros(t:time) -> intConvert a datetime.time object to microseconds from midnight.
func
pyiceberg.utils.datetime.time_to_nanos(t:time) -> intConvert a datetime.time object to nanoseconds from midnight.
func
pyiceberg.utils.datetime.to_human_day(day_ordinal:int) -> strConvert a DateType value to human string.
func
pyiceberg.utils.datetime.to_human_hour(hour_ordinal:int) -> strConvert a DateType value to human string.
func
pyiceberg.utils.datetime.to_human_month(month_ordinal:int) -> strConvert a DateType value to human string.
func
pyiceberg.utils.datetime.to_human_time(micros_from_midnight:int) -> strConvert a TimeType value to human string.
func
pyiceberg.utils.datetime.to_human_timestamp(timestamp_micros:int) -> strConvert a TimestampType value to human string.
func
pyiceberg.utils.datetime.to_human_timestamptz(timestamp_micros:int) -> strConvert a TimestamptzType value to human string.
func
pyiceberg.utils.datetime.to_human_year(year_ordinal:int) -> strConvert a DateType value to human string.
func
pyiceberg.utils.decimal.bytes_to_decimal(value:bytes, scale:int) -> DecimalReturn a decimal from the bytes.
func
pyiceberg.utils.decimal.decimal_required_bytes(precision:int) -> intCompute the number of bytes required to store a precision.
func
pyiceberg.utils.decimal.decimal_to_bytes(value:Decimal, byte_length:int | None=None) -> bytesReturn a byte representation of a decimal.
func
pyiceberg.utils.decimal.decimal_to_unscaled(value:Decimal) -> intGet an unscaled value given a Decimal value.
func
pyiceberg.utils.decimal.truncate_decimal(value:Decimal, width:int) -> DecimalGet a truncated Decimal value given a decimal value and a width.
func
pyiceberg.utils.decimal.unscaled_to_decimal(unscaled:int, scale:int) -> DecimalGet a scaled Decimal value given an unscaled value and a scale.
func
pyiceberg.utils.deprecated.deprecated(deprecated_in:str, removed_in:str, help_message:str | None=None) -> CallableMark functions as deprecated.
func
pyiceberg.utils.deprecated.deprecation_message(deprecated_in:str, removed_in:str, help_message:str | None) -> NoneMark properties or behaviors as deprecated.
func
pyiceberg.utils.deprecated.deprecation_notice(deprecated_in:str, removed_in:str, help_message:str | None) -> strReturn a deprecation notice.
class
pyiceberg.utils.lazydict.LazyDictLazily build a dictionary from an array of items.
class
pyiceberg.utils.schema_conversion.ConvertSchemaToAvroConvert an Iceberg schema to an Avro schema.
class
pyiceberg.view.ViewAn Iceberg view.
method
pyiceberg.view.View.current_version() -> ViewVersionGet the version of this view.
method
pyiceberg.view.View.history() -> list[ViewHistoryEntry]Get the version of this history view.
method
pyiceberg.view.View.location() -> strReturn the view's base location.
method
pyiceberg.view.View.name() -> IdentifierReturn the identifier of this view.
method
pyiceberg.view.View.properties() -> dict[str, str]Return a map of string properties for this view.
method
pyiceberg.view.View.schema() -> SchemaReturn the schema for this view.
method
pyiceberg.view.View.schemas() -> dict[int, Schema]Return the schemas for this view.
method
pyiceberg.view.View.uuid() -> UUIDReturn the view's UUID.
method
pyiceberg.view.View.versions() -> list[ViewVersion]Get the versions of this view.
class
pyiceberg.view.metadata.SQLViewRepresentationRepresents the SQL query that defines the view.
class
pyiceberg.view.metadata.ViewHistoryEntryA log entry of a view version change.
class
pyiceberg.view.metadata.ViewMetadataThe metadata for a view.
class
pyiceberg.view.metadata.ViewVersionA version of the view definition.
この情報について
掲載しているシグネチャは apache/iceberg-python の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。