|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.h2.mvstore.type.StringType
public class StringType
A string type.
| Field Summary | |
|---|---|
static StringType |
INSTANCE
|
| Constructor Summary | |
|---|---|
StringType()
|
|
| Method Summary | |
|---|---|
java.lang.String |
asString()
Get the stable string representation that is used to build this data type. |
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two keys. |
int |
getMaxLength(java.lang.Object obj)
Get the maximum length in bytes used to store an object. |
int |
getMemory(java.lang.Object obj)
Estimate the used memory in bytes. |
java.lang.String |
read(java.nio.ByteBuffer buff)
Read an object. |
void |
write(java.nio.ByteBuffer buff,
java.lang.Object obj)
Write the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StringType INSTANCE
| Constructor Detail |
|---|
public StringType()
| Method Detail |
|---|
public int compare(java.lang.Object a,
java.lang.Object b)
DataType
compare in interface DataTypea - the first keyb - the second key
public int getMaxLength(java.lang.Object obj)
DataType
getMaxLength in interface DataTypeobj - the object
public int getMemory(java.lang.Object obj)
DataType
getMemory in interface DataTypeobj - the object
public java.lang.String read(java.nio.ByteBuffer buff)
DataType
read in interface DataTypebuff - the source buffer
public void write(java.nio.ByteBuffer buff,
java.lang.Object obj)
DataType
write in interface DataTypebuff - the target bufferobj - the valuepublic java.lang.String asString()
DataTypeTo avoid conflict with the default factory, the returned string should start with the package name of the type factory.
asString in interface DataType
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||