org.knime.core.data.container
Class BlobDataCell.BlobAddress

java.lang.Object
  extended by org.knime.core.data.container.BlobDataCell.BlobAddress
Enclosing class:
BlobDataCell

static final class BlobDataCell.BlobAddress
extends Object

Utility class that holds information where the blob is located. This contains: bufferID, column index, index of blob in the column.


Constructor Summary
BlobDataCell.BlobAddress(int bufferID, int column, boolean isUseCompression)
          Create new address object.
 
Method Summary
(package private) static BlobDataCell.BlobAddress deserialize(DataInput input)
          Reads blob address from stream.
 boolean equals(Object obj)
          
(package private)  int getBufferID()
           
(package private)  int getColumn()
           
(package private)  int getIndexOfBlobInColumn()
          Get the index of the blob in the columns (if a column only contains blobs, this method returns the row index).
 int hashCode()
          
 boolean isUseCompression()
           
(package private)  void serialize(DataOutput output)
          Writes address to a stream.
 void setIndexOfBlobInColumn(int indexOfBlobInColumn)
          Set the corresponding address.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlobDataCell.BlobAddress

BlobDataCell.BlobAddress(int bufferID,
                         int column,
                         boolean isUseCompression)
Create new address object.

Parameters:
bufferID - ID of corresponding buffer.
column - The column index
isUseCompression - Whether or not the file is to be compressed.
Method Detail

setIndexOfBlobInColumn

public void setIndexOfBlobInColumn(int indexOfBlobInColumn)
Set the corresponding address.

Parameters:
indexOfBlobInColumn - The index of blob in the column.

getBufferID

int getBufferID()
Returns:
The ID of the Buffer which takes responsibility to serialize out this object

getColumn

int getColumn()
Returns:
the column

isUseCompression

public boolean isUseCompression()
Returns:
Whether or not the blob is (to be) compressed.

getIndexOfBlobInColumn

int getIndexOfBlobInColumn()
Get the index of the blob in the columns (if a column only contains blobs, this method returns the row index).

Returns:
The blob row address

toString

public String toString()

Overrides:
toString in class Object

serialize

void serialize(DataOutput output)
         throws IOException
Writes address to a stream.

Parameters:
output - To write to.
Throws:
IOException - If that fails for any reason.

deserialize

static BlobDataCell.BlobAddress deserialize(DataInput input)
                                     throws IOException
Reads blob address from stream.

Parameters:
input - To read from.
Returns:
A new blob instance.
Throws:
IOException - If that fails.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.