com.metamatrix.common.types
Interface Streamable

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BlobType, ClobType, XMLType

public interface Streamable
extends java.io.Serializable

A large value object which can be streamable in chunks of data each time

A reference stream id is tuple source id for a Streamble object where the object is in buffer manager, but the contents will never be written to disk; this is the ID that client needs to reference to get the chunk of data.

A Persistent stream id is Tuple source id under which the server *may* have saved the data to disk in buffer manager. In case of XML it is saved however in case of Clobs and Blobs it is not saved yet. This id is used by the process worker to in case the reference object has lost its state and we need to reinsate the object from the disk.


Field Summary
static java.lang.String FORCE_STREAMING
           
static int STREAMING_BATCH_SIZE_IN_BYTES
           
 
Method Summary
 java.lang.String getPersistenceStreamId()
          Persitence Stream ID in the server
 java.lang.String getReferenceStreamId()
          Reference Stream ID in the server
 void setPersistenceStreamId(java.lang.String id)
          Persitence Stream ID in the server
 void setReferenceStreamId(java.lang.String id)
          Reference Stream ID in the server
 

Field Detail

FORCE_STREAMING

static final java.lang.String FORCE_STREAMING
See Also:
Constant Field Values

STREAMING_BATCH_SIZE_IN_BYTES

static final int STREAMING_BATCH_SIZE_IN_BYTES
See Also:
Constant Field Values
Method Detail

getReferenceStreamId

java.lang.String getReferenceStreamId()
Reference Stream ID in the server

Returns:
string - this is buffer managers tuple source id.

setReferenceStreamId

void setReferenceStreamId(java.lang.String id)
Reference Stream ID in the server

Parameters:
id - this is buffer managers tuple source id.

getPersistenceStreamId

java.lang.String getPersistenceStreamId()
Persitence Stream ID in the server

Returns:
string - this is buffer managers tuple source id.

setPersistenceStreamId

void setPersistenceStreamId(java.lang.String id)
Persitence Stream ID in the server

Parameters:
id - this is buffer managers tuple source id.


Copyright © 2009. All Rights Reserved.