public class BufferedString extends Iced implements java.lang.Comparable<BufferedString>
ParseTest2#testSpeedOfCategoricalUpdate
.
Warning: This data structure is not designed for parallel access!Modifier and Type | Field and Description |
---|---|
protected byte[] |
_buf |
protected int |
_len |
protected int |
_off |
static byte |
INT |
static byte |
NA |
static byte |
REAL |
Constructor and Description |
---|
BufferedString() |
BufferedString(byte[] buf,
int off,
int len) |
BufferedString(java.lang.String from) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(BufferedString o)
Comparison, according to Comparable interface
|
boolean |
equals(java.lang.Object o) |
boolean |
equalsAsciiString(java.lang.String str)
Tests whether this BufferedString is equal to a given ASCII string
|
byte[] |
getBuffer() |
byte |
getNumericType() |
int |
getOffset() |
int |
hashCode() |
int |
length() |
BufferedString |
read_impl(AutoBuffer ab) |
BufferedString |
set(byte[] buf) |
BufferedString |
set(byte[] buf,
int off,
int len) |
BufferedString |
set(java.lang.String s) |
void |
setLen(int len) |
void |
setOff(int off) |
static BufferedString[] |
toBufferedString(java.lang.String[] strings) |
java.lang.String |
toSanitizedString()
Converts this BufferedString into an ASCII String where all original non-ASCII characters
are represented in a hexadecimal notation.
|
java.lang.String |
toString() |
static java.lang.String[] |
toString(BufferedString[] bStr) |
AutoBuffer |
write_impl(AutoBuffer ab) |
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
protected byte[] _buf
protected int _off
protected int _len
public static final byte NA
public static final byte INT
public static final byte REAL
public BufferedString(byte[] buf, int off, int len)
public BufferedString(java.lang.String from)
public BufferedString()
public final AutoBuffer write_impl(AutoBuffer ab)
public final BufferedString read_impl(AutoBuffer ab)
public int compareTo(BufferedString o)
compareTo
in interface java.lang.Comparable<BufferedString>
o
- other string to comparepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toSanitizedString()
public static java.lang.String[] toString(BufferedString[] bStr)
public static BufferedString[] toBufferedString(java.lang.String[] strings)
public final BufferedString set(byte[] buf)
public BufferedString set(byte[] buf, int off, int len)
public final BufferedString set(java.lang.String s)
public void setOff(int off)
public void setLen(int len)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equalsAsciiString(java.lang.String str)
str
- string sequence made of ASCII characters (0..127)public final byte[] getBuffer()
public final int getOffset()
public final int length()
public final byte getNumericType()