com.bigdata.bfs
Class FileVersionInputStream
java.lang.Object
java.io.InputStream
com.bigdata.bfs.FileVersionInputStream
- All Implemented Interfaces:
- Closeable
public class FileVersionInputStream
- extends InputStream
Reads from blocks visited by a range scan for a file and version.
- Version:
- $Id: FileVersionInputStream.java 2265 2009-10-26 12:51:06Z thompsonbry $
- Author:
- Bryan Thompson
|
Method Summary |
long |
getBlock()
The current block identifier. |
String |
getId()
The file identifier. |
int |
getVersion()
The file version identifer. |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
Overriden for greater efficiency. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected final String id
version
protected final int version
FileVersionInputStream
public FileVersionInputStream(String id,
int version,
ITupleIterator src)
getId
public String getId()
- The file identifier.
getVersion
public int getVersion()
- The file version identifer.
getBlock
public long getBlock()
- The current block identifier.
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overriden for greater efficiency.
- Overrides:
read in class InputStream
- Throws:
IOException
Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.