|  | Java SDK Documentation
    24.2.0
    | 

| Public Member Functions | |
| VString (ByteBuffer buf, int offset, int totalMaxLen) | |
| VString (ByteBuffer hbuf, ByteBuffer dbuf, int hoffset, int doffset, int maxDataLen) | |
| void | copy (byte[] from) | 
| void | copy (String from) | 
| void | copy (VString from) | 
| ByteBuffer | data () | 
| boolean | isNull () | 
| int | length () | 
| void | setNull () | 
| String | str () | 
| String | toString () | 
Representation of a String in Vertica. All character data is internally encoded as UTF-8 characters and is not NULL terminated.
| com.vertica.sdk.VString.VString | ( | ByteBuffer | buf, | 
| int | offset, | ||
| int | totalMaxLen | ||
| ) | 
| com.vertica.sdk.VString.VString | ( | ByteBuffer | hbuf, | 
| ByteBuffer | dbuf, | ||
| int | hoffset, | ||
| int | doffset, | ||
| int | maxDataLen | ||
| ) | 
| void com.vertica.sdk.VString.copy | ( | byte [] | from | ) | 
Copy character data from byte array to the VString's internal buffer.
| from | array of bytes input data | 
| void com.vertica.sdk.VString.copy | ( | String | from | ) | 
Copy character data from String
| from | Java String object as character input data | 
| void com.vertica.sdk.VString.copy | ( | VString | from | ) | 
| ByteBuffer com.vertica.sdk.VString.data | ( | ) | 
Provides a read-only ByteBuffer to this VString's internal character data.
Note: The returned string is not null terminated
| boolean com.vertica.sdk.VString.isNull | ( | ) | 
Indicates if this VString contains the SQL NULL value
Referenced by com.vertica.sdk.VString.str().
| int com.vertica.sdk.VString.length | ( | ) | 
Returns the length of this VString
Referenced by com.vertica.sdk.VString.copy(), com.vertica.sdk.VString.isNull(), and com.vertica.sdk.VString.str().
| void com.vertica.sdk.VString.setNull | ( | ) | 
Sets this VString to the SQL NULL value.
| String com.vertica.sdk.VString.str | ( | ) | 
Provides a copy of this VString's data as a Java String
Referenced by com.vertica.sdk.BlockReader.getString().