com.bigdata.bfs
Class FileVersionInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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

Field Summary
protected  String id
           
protected  int version
           
 
Constructor Summary
FileVersionInputStream(String id, int version, ITupleIterator src)
           
 
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.io.InputStream
available, close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected final String id

version

protected final int version
Constructor Detail

FileVersionInputStream

public FileVersionInputStream(String id,
                              int version,
                              ITupleIterator src)
Method Detail

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.