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 boolean
exists()
static GCSInputFile
fromLocation(java.lang.String location, com.google.cloud.storage.Storage storage, GCPProperties gcpProperties)
protected GCPProperties
gcpProperties()
protected com.google.cloud.storage.Blob
getBlob()
long
getLength()
Returns the total length of the file, in bytesjava.lang.String
location()
SeekableInputStream
newStream()
Opens a newSeekableInputStream
for the underlying data filejava.lang.String
toString()
-
-
-
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:InputFile
Returns the total length of the file, in bytes
-
newStream
public SeekableInputStream newStream()
Description copied from interface:InputFile
Opens a newSeekableInputStream
for 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:
toString
in classjava.lang.Object
-
-