manifest
DataFile
¶
Bases: Record
Source code in pyiceberg/manifest.py
DataFileContent
¶
Bases: int
, Enum
Source code in pyiceberg/manifest.py
FileFormat
¶
Bases: str
, Enum
Source code in pyiceberg/manifest.py
ManifestContent
¶
Bases: int
, Enum
Source code in pyiceberg/manifest.py
ManifestEntryStatus
¶
Bases: int
, Enum
Source code in pyiceberg/manifest.py
ManifestFile
¶
Bases: Record
Source code in pyiceberg/manifest.py
fetch_manifest_entry(io, discard_deleted=True)
¶
Read the manifest entries from the manifest file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
io
|
FileIO
|
The FileIO to fetch the file. |
required |
discard_deleted
|
bool
|
Filter on live entries. |
True
|
Returns:
Type | Description |
---|---|
List[ManifestEntry]
|
An Iterator of manifest entries. |
Source code in pyiceberg/manifest.py
ManifestListWriter
¶
Bases: ABC
Source code in pyiceberg/manifest.py
__enter__()
¶
Open the writer for writing.
Source code in pyiceberg/manifest.py
__exit__(exc_type, exc_value, traceback)
¶
Close the writer.
Source code in pyiceberg/manifest.py
ManifestWriter
¶
Bases: ABC
Source code in pyiceberg/manifest.py
705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 |
|
__enter__()
¶
__exit__(exc_type, exc_value, traceback)
¶
Close the writer.
Source code in pyiceberg/manifest.py
to_manifest_file()
¶
Return the manifest file.
Source code in pyiceberg/manifest.py
_inherit_from_manifest(entry, manifest)
¶
Inherits properties from manifest file.
The properties that will be inherited are: - sequence numbers - partition spec id.
More information about inheriting sequence numbers: https://iceberg.apache.org/spec/#sequence-number-inheritance
Parameters:
Name | Type | Description | Default |
---|---|---|---|
entry
|
ManifestEntry
|
The manifest entry. |
required |
manifest
|
ManifestFile
|
The manifest file. |
required |
Returns:
Type | Description |
---|---|
ManifestEntry
|
The manifest entry with properties inherited. |
Source code in pyiceberg/manifest.py
_manifests(io, manifest_list)
¶
Read and cache manifests from the given manifest list, returning a tuple to prevent modification.
Source code in pyiceberg/manifest.py
read_manifest_list(input_file)
¶
Read the manifests from the manifest list.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_file
|
InputFile
|
The input file where the stream can be read from. |
required |
Returns:
Type | Description |
---|---|
Iterator[ManifestFile]
|
An iterator of ManifestFiles that are part of the list. |