| Constructor and Description |
|---|
LongString(Database db,
char[] chars,
boolean useBytes) |
LongString(Database db,
long record) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(char[] other,
boolean caseSensitive)
Compare this IString record and the specified character array
|
int |
compare(IString string,
boolean caseSensitive)
Compare this IString record and the specified IString record
|
int |
compare(java.lang.String other,
boolean caseSensitive)
Compare this IString record and the specified String object
|
int |
compareCompatibleWithIgnoreCase(char[] other)
Compare this IString record and the specified char array in a case sensitive manner
such that it is compatible with case insensitive comparison.
|
int |
compareCompatibleWithIgnoreCase(IString string)
Compare this IString record and the specified IString record in a case sensitive manner
such that it is compatible with case insensitive comparison.
|
int |
comparePrefix(char[] other,
boolean caseSensitive)
Compare this IString record and the specified character array
|
void |
delete()
Free the associated record in the Nd
|
boolean |
equals(java.lang.Object obj) |
char[] |
getChars()
Get an equivalent character array to this IString record
|
long |
getRecord()
Get the offset of this IString record in the Nd
|
java.lang.String |
getString()
Get an equivalent String object to this IString record
|
int |
hashCode()
Compatible with
String.hashCode() |
int |
length() |
public LongString(Database db, long record)
public LongString(Database db, char[] chars, boolean useBytes) throws IndexException
IndexExceptionpublic long getRecord()
IStringpublic char[] getChars()
throws IndexException
IStringN.B. This method can be expensive: compare and equals can be used for efficient comparisons
getChars in interface IStringIndexExceptionpublic void delete()
throws IndexException
IStringdelete in interface IStringIndexExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
String.hashCode()hashCode in class java.lang.Objectpublic int compare(IString string, boolean caseSensitive) throws IndexException
IStringcompare in interface IStringcaseSensitive - whether to compare in a case-sensitive wayIndexExceptionpublic int compare(java.lang.String other,
boolean caseSensitive)
throws IndexException
IStringcompare in interface IStringcaseSensitive - whether to compare in a case-sensitive wayIndexExceptionpublic int compare(char[] other,
boolean caseSensitive)
throws IndexException
IStringcompare in interface IStringcaseSensitive - whether to compare in a case-sensitive wayIndexExceptionpublic int compareCompatibleWithIgnoreCase(IString string) throws IndexException
IStringcompareCompatibleWithIgnoreCase in interface IStringIndexExceptionpublic int comparePrefix(char[] other,
boolean caseSensitive)
throws IndexException
IStringcomparePrefix in interface IStringother - the name to compare tocaseSensitive - whether to compare in a case-sensitive wayIndexExceptionpublic java.lang.String getString()
throws IndexException
IStringN.B. This method can be expensive: compare and equals can be used for efficient comparisons
getString in interface IStringIndexExceptionpublic int compareCompatibleWithIgnoreCase(char[] other)
throws IndexException
IStringcompareCompatibleWithIgnoreCase in interface IStringIndexException