|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.types.BlobType
public final class BlobType
Represent a value of type "blob", which can be streamable from client
| Field Summary |
|---|
| Fields inherited from interface com.metamatrix.common.types.Streamable |
|---|
FORCE_STREAMING, STREAMING_BATCH_SIZE_IN_BYTES |
| Constructor Summary | |
|---|---|
BlobType(java.sql.Blob blob)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
void |
free()
|
java.io.InputStream |
getBinaryStream()
|
java.io.InputStream |
getBinaryStream(long pos,
long length)
|
static byte[] |
getByteArray(java.sql.Blob blob)
Utility Method to convert blob into byte array |
byte[] |
getBytes(long pos,
int length)
|
java.lang.String |
getPersistenceStreamId()
Persitence Stream ID in the server |
java.lang.String |
getReferenceStreamId()
Reference Stream ID in the server |
java.sql.Blob |
getSourceBlob()
|
long |
length()
|
long |
position(java.sql.Blob pattern,
long start)
|
long |
position(byte[] pattern,
long start)
|
java.io.OutputStream |
setBinaryStream(long pos)
|
int |
setBytes(long pos,
byte[] bytes)
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
|
void |
setPersistenceStreamId(java.lang.String id)
Persitence Stream ID in the server |
void |
setReferenceStreamId(java.lang.String id)
Reference Stream ID in the server |
java.lang.String |
toString()
|
void |
truncate(long len)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BlobType(java.sql.Blob blob)
| Method Detail |
|---|
public java.sql.Blob getSourceBlob()
public java.lang.String getReferenceStreamId()
Streamable
getReferenceStreamId in interface StreamableStreamable.getReferenceStreamId()public void setReferenceStreamId(java.lang.String id)
Streamable
setReferenceStreamId in interface Streamableid - this is buffer managers tuple source id.Streamable.setReferenceStreamId(java.lang.String)public java.lang.String getPersistenceStreamId()
Streamable
getPersistenceStreamId in interface StreamableStreamable.getPersistenceStreamId()public void setPersistenceStreamId(java.lang.String id)
Streamable
setPersistenceStreamId in interface Streamableid - this is buffer managers tuple source id.Streamable.setPersistenceStreamId(java.lang.String)
public java.io.InputStream getBinaryStream()
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionBlob.getBinaryStream()
public byte[] getBytes(long pos,
int length)
throws java.sql.SQLException
getBytes in interface java.sql.Blobjava.sql.SQLExceptionBlob.getBytes(long, int)
public long length()
throws java.sql.SQLException
length in interface java.sql.Blobjava.sql.SQLExceptionBlob.length()
public long position(java.sql.Blob pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionBlob.position(java.sql.Blob, long)
public long position(byte[] pattern,
long start)
throws java.sql.SQLException
position in interface java.sql.Blobjava.sql.SQLExceptionBlob.position(byte[], long)
public java.io.OutputStream setBinaryStream(long pos)
throws java.sql.SQLException
setBinaryStream in interface java.sql.Blobjava.sql.SQLExceptionBlob.setBinaryStream(long)
public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionBlob.setBytes(long, byte[], int, int)
public int setBytes(long pos,
byte[] bytes)
throws java.sql.SQLException
setBytes in interface java.sql.Blobjava.sql.SQLExceptionBlob.setBytes(long, byte[])
public void truncate(long len)
throws java.sql.SQLException
truncate in interface java.sql.Blobjava.sql.SQLExceptionBlob.truncate(long)public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public static byte[] getByteArray(java.sql.Blob blob)
throws java.sql.SQLException,
java.io.IOException
blob -
java.sql.SQLException
java.io.IOException
public void free()
throws java.sql.SQLException
free in interface java.sql.Blobjava.sql.SQLException
public java.io.InputStream getBinaryStream(long pos,
long length)
throws java.sql.SQLException
getBinaryStream in interface java.sql.Blobjava.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||