com.bigdata.rawstore
Interface IBlock


public interface IBlock

An object that may be used to read or write a block from a store. In general, an instance of this interface either supports read or write but not both.

Version:
$Id: IBlock.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Method Summary
 long getAddress()
          The address of the block on the store.
 InputStream inputStream()
          The source from which the block's data may be read.
 int length()
          The length of the block.
 

Method Detail

getAddress

long getAddress()
The address of the block on the store.


length

int length()
The length of the block.


inputStream

InputStream inputStream()
The source from which the block's data may be read.

Note: It is important to close() this input stream.

Throws:
UnsupportedOperationException - if read is not supported.


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.