public class ICUVersionRecord extends Object implements Externalizable
Name2Addr
. A change in the ICU
version can result in sort keys which are NOT compatible. Binary
compatibility for Unicode sort keys is an absolute requirement for bigdata.
The purpose of this persistence capable data record is to note the version of
ICU against which bigdata was linked with the associated binary store file
was created.
Note: This can result in data which apparently becomes "lost", such as this
Version:
Constructor and Description |
---|
ICUVersionRecord()
De-serialization contructor only.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
com.ibm.icu.util.VersionInfo |
getICUVersion()
The ICU software version number.
|
com.ibm.icu.util.VersionInfo |
getUColBuilderVersion()
If this version number changes, then the same tailoring might result in
assigning different collation elements to code points (which could break
binary compatibility on sort keys).
|
com.ibm.icu.util.VersionInfo |
getUColRuntimeVersion()
If this version number changes, then the sort keys for the same Unicode
string could be different.
|
com.ibm.icu.util.VersionInfo |
getUColTailoringsVersion()
The version of the collation tailorings.
|
int |
hashCode() |
static void |
main(String[] args)
Writes out the
ICUVersionRecord for the current classpath. |
static ICUVersionRecord |
newInstance()
Factory returns a record reporting on the ICU dependency as currently
linked with the code base.
|
void |
readExternal(ObjectInput in) |
String |
toString()
A human readable representation of the data record.
|
void |
writeExternal(ObjectOutput out) |
public com.ibm.icu.util.VersionInfo getICUVersion()
VersionInfo.ICU_VERSION
public com.ibm.icu.util.VersionInfo getUColRuntimeVersion()
VersionInfo.UCOL_RUNTIME_VERSION
public com.ibm.icu.util.VersionInfo getUColBuilderVersion()
VersionInfo.UCOL_BUILDER_VERSION
public com.ibm.icu.util.VersionInfo getUColTailoringsVersion()
VersionInfo.UCOL_TAILORINGS_VERSION
public static ICUVersionRecord newInstance()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public String toString()
public static void main(String[] args)
ICUVersionRecord
for the current classpath.args
- Ignored.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.