org.knime.core.data.container
Class DataContainer.BufferCreator
java.lang.Object
org.knime.core.data.container.DataContainer.BufferCreator
- Enclosing class:
- DataContainer
static class DataContainer.BufferCreator
- extends Object
Helper class to create a Buffer instance given a binary file and the
data table spec.
Method Summary |
(package private) Buffer |
createBuffer(File binFile,
File blobDir,
DataTableSpec spec,
InputStream metaIn,
int bufID,
Map<Integer,ContainerTable> tblRep)
Creates buffer for reading. |
(package private) Buffer |
createBuffer(int rowsInMemory,
int bufferID,
Map<Integer,ContainerTable> globalTableRep,
Map<Integer,ContainerTable> localTableRep)
Creates buffer for writing (adding of rows). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataContainer.BufferCreator
DataContainer.BufferCreator()
createBuffer
Buffer createBuffer(File binFile,
File blobDir,
DataTableSpec spec,
InputStream metaIn,
int bufID,
Map<Integer,ContainerTable> tblRep)
throws IOException
- Creates buffer for reading.
- Parameters:
binFile
- the binary temp file.blobDir
- temp directory containing blobs (may be null).spec
- The spec.metaIn
- Input stream containing meta information.bufID
- The buffer's id used for blob (de)serializationtblRep
- Table repository for blob (de)serialization.
- Returns:
- A buffer instance.
- Throws:
IOException
- If parsing fails.
createBuffer
Buffer createBuffer(int rowsInMemory,
int bufferID,
Map<Integer,ContainerTable> globalTableRep,
Map<Integer,ContainerTable> localTableRep)
- Creates buffer for writing (adding of rows).
- Parameters:
rowsInMemory
- The number of rows being kept in memory.bufferID
- The buffer's id used for blob (de)serialization.globalTableRep
- Table repository for blob (de)serialization.localTableRep
- Table repository for blob (de)serialization.
- Returns:
- A newly created buffer.
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.