Package org.apache.iceberg.gcp.gcs
Class GCSInputFile
- java.lang.Object
-
- org.apache.iceberg.gcp.gcs.GCSInputFile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()static GCSInputFilefromLocation(java.lang.String location, com.google.cloud.storage.Storage storage, GCPProperties gcpProperties)protected GCPPropertiesgcpProperties()protected com.google.cloud.storage.BlobgetBlob()longgetLength()Returns the total length of the file, in bytesjava.lang.Stringlocation()SeekableInputStreamnewStream()Opens a newSeekableInputStreamfor the underlying data filejava.lang.StringtoString()
-
-
-
Method Detail
-
fromLocation
public static GCSInputFile fromLocation(java.lang.String location, com.google.cloud.storage.Storage storage, GCPProperties gcpProperties)
-
getLength
public long getLength()
Description copied from interface:InputFileReturns the total length of the file, in bytes
-
newStream
public SeekableInputStream newStream()
Description copied from interface:InputFileOpens a newSeekableInputStreamfor the underlying data file
-
location
public java.lang.String location()
-
gcpProperties
protected GCPProperties gcpProperties()
-
exists
public boolean exists()
-
getBlob
protected com.google.cloud.storage.Blob getBlob()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-