Package org.apache.iceberg.inmemory
Class InMemoryInputFile
- java.lang.Object
-
- org.apache.iceberg.inmemory.InMemoryInputFile
-
-
Constructor Summary
Constructors Constructor Description InMemoryInputFile(byte[] contents)
InMemoryInputFile(java.lang.String location, byte[] contents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists()
Checks whether the file exists.long
getLength()
Returns the total length of the file, in bytesjava.lang.String
location()
The fully-qualified location of the input file as a String.SeekableInputStream
newStream()
Opens a newSeekableInputStream
for the underlying data file
-
-
-
Method Detail
-
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()
Description copied from interface:InputFile
The fully-qualified location of the input file as a String.
-
-