Package org.apache.iceberg.inmemory
Class InMemoryInputFile
java.lang.Object
org.apache.iceberg.inmemory.InMemoryInputFile
- All Implemented Interfaces:
InputFile
-
Constructor Summary
ConstructorDescriptionInMemoryInputFile
(byte[] contents) InMemoryInputFile
(String location, byte[] contents) -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
Checks whether the file exists.long
Returns the total length of the file, in byteslocation()
The fully-qualified location of the input file as a String.Opens a newSeekableInputStream
for the underlying data file
-
Constructor Details
-
InMemoryInputFile
public InMemoryInputFile(byte[] contents) -
InMemoryInputFile
-
-
Method Details
-
getLength
public long getLength()Description copied from interface:InputFile
Returns the total length of the file, in bytes -
newStream
Description copied from interface:InputFile
Opens a newSeekableInputStream
for the underlying data file -
location
Description copied from interface:InputFile
The fully-qualified location of the input file as a String. -
exists
public boolean exists()Description copied from interface:InputFile
Checks whether the file exists.
-