Package org.duckdb
Class DuckDBResultSet.DuckDBBlobResult
- java.lang.Object
-
- org.duckdb.DuckDBResultSet.DuckDBBlobResult
-
- All Implemented Interfaces:
java.sql.Blob
- Enclosing class:
- DuckDBResultSet
public static class DuckDBResultSet.DuckDBBlobResult extends java.lang.Object implements java.sql.Blob
-
-
Constructor Summary
Constructors Constructor Description DuckDBBlobResult(java.nio.ByteBuffer buffer_p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)voidfree()java.io.InputStreamgetBinaryStream()java.io.InputStreamgetBinaryStream(long pos, long length)byte[]getBytes(long pos, int length)inthashCode()longlength()longposition(byte[] pattern, long start)longposition(java.sql.Blob pattern, long start)java.io.OutputStreamsetBinaryStream(long pos)intsetBytes(long pos, byte[] bytes)intsetBytes(long pos, byte[] bytes, int offset, int len)java.lang.StringtoString()voidtruncate(long length)
-
-
-
Method Detail
-
getBinaryStream
public java.io.InputStream getBinaryStream()
- Specified by:
getBinaryStreamin interfacejava.sql.Blob
-
getBinaryStream
public java.io.InputStream getBinaryStream(long pos, long length)- Specified by:
getBinaryStreamin interfacejava.sql.Blob
-
getBytes
public byte[] getBytes(long pos, int length)- Specified by:
getBytesin interfacejava.sql.Blob
-
position
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException- Specified by:
positionin interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
position
public long position(byte[] pattern, long start) throws java.sql.SQLException- Specified by:
positionin interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
length
public long length()
- Specified by:
lengthin interfacejava.sql.Blob
-
free
public void free()
- Specified by:
freein interfacejava.sql.Blob
-
setBinaryStream
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException- Specified by:
setBinaryStreamin interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
truncate
public void truncate(long length) throws java.sql.SQLException- Specified by:
truncatein interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException- Specified by:
setBytesin interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException- Specified by:
setBytesin interfacejava.sql.Blob- Throws:
java.sql.SQLException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-