public class VecDataInputStream
extends java.io.InputStream
implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable
| Constructor and Description |
|---|
VecDataInputStream(water.fvec.Vec v) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPos() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length) |
int |
read(long position,
byte[] buffer,
int offset,
int length) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
void |
seek(long position) |
boolean |
seekToNewSource(long targetPos) |
long |
skip(long n) |
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamjava.io.IOExceptionpublic int read(long position,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in interface org.apache.hadoop.fs.PositionedReadablejava.io.IOExceptionpublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws java.io.IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablejava.io.IOExceptionpublic void readFully(long position,
byte[] buffer)
throws java.io.IOException
readFully in interface org.apache.hadoop.fs.PositionedReadablejava.io.IOExceptionpublic void seek(long position)
throws java.io.IOException
seek in interface org.apache.hadoop.fs.Seekablejava.io.IOExceptionpublic long getPos()
throws java.io.IOException
getPos in interface org.apache.hadoop.fs.Seekablejava.io.IOExceptionpublic boolean seekToNewSource(long targetPos)
throws java.io.IOException
seekToNewSource in interface org.apache.hadoop.fs.Seekablejava.io.IOException