|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.container.Buffer
org.knime.core.data.container.NoKeyBuffer
class NoKeyBuffer
Buffer implementation that does not write the row keys. Used to write data if only few columns have changed. This buffer writes the changed columns.
This class is used to save the data of the new columns in a
RearrangeColumnsTable
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.knime.core.data.container.Buffer |
---|
Buffer.FromFileIterator |
Field Summary |
---|
Fields inherited from class org.knime.core.data.container.Buffer |
---|
ZIP_ENTRY_BLOBS, ZIP_ENTRY_DATA, ZIP_ENTRY_META |
Fields inherited from interface org.knime.core.data.container.KNIMEStreamConstants |
---|
BYTE_ROW_SEPARATOR, BYTE_TYPE_MISSING, BYTE_TYPE_SERIALIZATION, BYTE_TYPE_START, DUMMY_ROW_KEY, TC_ESCAPE, TC_TERMINATE |
Constructor Summary | |
---|---|
NoKeyBuffer(File binFile,
File blobDir,
DataTableSpec spec,
InputStream metaIn,
int bufferID,
Map<Integer,ContainerTable> tblRep)
Creates new buffer for reading. |
|
NoKeyBuffer(int maxRowsInMemory,
int bufferID,
Map<Integer,ContainerTable> tblRep,
Map<Integer,ContainerTable> localTblRep)
Creates new buffer for writing. |
Method Summary | |
---|---|
(package private) Buffer |
createLocalCloneForWriting()
Creates a clone of this buffer for writing the content to a stream that is of the current version. |
String |
getVersion()
Get the version string to write to the meta file. |
(package private) boolean |
shouldSkipRowKey()
Get whether the buffer wants to persist row keys. |
int |
validateVersion(String version)
Validate the version as read from the file if it can be parsed by this implementation. |
Methods inherited from class org.knime.core.data.container.Buffer |
---|
addRow, addToZipFile, clear, clearIteratorInstance, close, containsBlobCells, createBlobDirNameForTemp, finalize, getBinFile, getBlobFile, getBufferID, getGlobalRepository, getLocalRepository, getReadVersion, getTableSpec, getTypeForChar, incrementSize, isBinFileGZipped, iterator, readBlobDataCell, restoreIntoMemory, size, usesOutFile, writeDataCell, writeRowKey |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
NoKeyBuffer(int maxRowsInMemory, int bufferID, Map<Integer,ContainerTable> tblRep, Map<Integer,ContainerTable> localTblRep)
maxRowsInMemory
- Passed on to super.bufferID
- Passed on to super.tblRep
- Passed on to super.localTblRep
- Passed on to super.NoKeyBuffer(File binFile, File blobDir, DataTableSpec spec, InputStream metaIn, int bufferID, Map<Integer,ContainerTable> tblRep) throws IOException
binFile
- Passed on to super.blobDir
- Passed on to super.spec
- Passed on to super.metaIn
- Passed on to super.bufferID
- Passed on to super.tblRep
- Passed on to super.
IOException
- Passed on from super.Method Detail |
---|
public String getVersion()
NoKeyBuffer
to distinguish
streams written by the different implementations.
getVersion
in class Buffer
public int validateVersion(String version) throws IOException
validateVersion
in class Buffer
version
- As read from file.
IOException
- If it can't be parsed.boolean shouldSkipRowKey()
true
but overwritten in NoKeyBuffer
.
shouldSkipRowKey
in class Buffer
Buffer createLocalCloneForWriting()
createLocalCloneForWriting
in class Buffer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |