|
27 | 27 |
|
28 | 28 | class FileStatus: |
29 | 29 | """ |
30 | | - Wrapper for org.apache.hadoop.fs.FileStatus |
| 30 | + Wrapper for org.apache.hadoop.fs.FileStatus |
31 | 31 | """ |
| 32 | + |
32 | 33 | def __init__(self, underlying): |
33 | 34 | """ |
34 | | - Class init |
| 35 | + Class init |
35 | 36 | """ |
36 | 37 | self.underlying = underlying |
37 | 38 |
|
38 | 39 | def get_path(self) -> str: |
39 | 40 | """ |
40 | | - Wraps getPath() method. |
| 41 | + Wraps getPath() method. |
41 | 42 |
|
42 | 43 | """ |
43 | 44 | return self.underlying.getPath().toString() |
44 | 45 |
|
45 | 46 | def get_owner(self) -> str: |
46 | 47 | """ |
47 | | - Wraps getOwner() method. |
| 48 | + Wraps getOwner() method. |
48 | 49 |
|
49 | 50 | """ |
50 | 51 | return self.underlying.getOwner() |
51 | 52 |
|
52 | 53 | def get_group(self) -> str: |
53 | 54 | """ |
54 | | - Wraps getGroup() method. |
| 55 | + Wraps getGroup() method. |
55 | 56 |
|
56 | 57 | """ |
57 | 58 | return self.underlying.getGroup() |
58 | 59 |
|
59 | 60 | def get_permission(self) -> str: |
60 | 61 | """ |
61 | | - Wraps getPermission() method. |
| 62 | + Wraps getPermission() method. |
62 | 63 |
|
63 | 64 | """ |
64 | 65 | return self.underlying.getPermission().toString() |
65 | 66 |
|
66 | 67 | def get_modification_time(self) -> int: |
67 | 68 | """ |
68 | | - Wraps getModificationTime() method. |
| 69 | + Wraps getModificationTime() method. |
69 | 70 |
|
70 | 71 | """ |
71 | 72 | return self.underlying.getModificationTime() |
72 | 73 |
|
73 | 74 | def is_file(self) -> bool: |
74 | 75 | """ |
75 | | - Wraps isFile() method. |
| 76 | + Wraps isFile() method. |
76 | 77 |
|
77 | 78 | """ |
78 | 79 | return self.underlying.isFile() |
79 | 80 |
|
80 | 81 | def get_block_size(self) -> int: |
81 | 82 | """ |
82 | | - Wraps getBlockSize() method. |
| 83 | + Wraps getBlockSize() method. |
83 | 84 |
|
84 | 85 | """ |
85 | 86 | return self.underlying.getBlockSize() |
86 | 87 |
|
87 | 88 | def get_file_length(self) -> int: |
88 | 89 | """ |
89 | | - Wraps getLen() method. |
| 90 | + Wraps getLen() method. |
90 | 91 |
|
91 | 92 | """ |
92 | 93 | return self.underlying.getLen() |
0 commit comments