Package com.aerospike.jdbc.sql.type
Class ByteArrayBlob
java.lang.Object
com.aerospike.jdbc.sql.type.ByteArrayBlob
- All Implemented Interfaces:
Blob
public class ByteArrayBlob extends Object implements Blob
-
Constructor Summary
Constructors Constructor Description ByteArrayBlob()
ByteArrayBlob(byte[] data)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
void
free()
InputStream
getBinaryStream()
InputStream
getBinaryStream(long pos, long length)
byte[]
getBytes(long pos, int length)
int
hashCode()
long
length()
long
position(byte[] pattern, long start)
long
position(Blob pattern, long start)
OutputStream
setBinaryStream(long pos)
int
setBytes(long pos, byte[] bytes)
int
setBytes(long pos, byte[] bytes, int offset, int len)
void
truncate(long len)
-
Constructor Details
-
ByteArrayBlob
public ByteArrayBlob() -
ByteArrayBlob
public ByteArrayBlob(byte[] data)
-
-
Method Details
-
length
public long length() -
getBytes
- Specified by:
getBytes
in interfaceBlob
- Throws:
SQLException
-
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
position
- Specified by:
position
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
setBytes
- Specified by:
setBytes
in interfaceBlob
- Throws:
SQLException
-
setBinaryStream
- Specified by:
setBinaryStream
in interfaceBlob
- Throws:
SQLException
-
truncate
- Specified by:
truncate
in interfaceBlob
- Throws:
SQLException
-
free
public void free() -
getBinaryStream
- Specified by:
getBinaryStream
in interfaceBlob
- Throws:
SQLException
-
equals
-
hashCode
public int hashCode()
-