Java Code Examples for org.apache.hadoop.io.UTF8#set()
The following examples show how to use
org.apache.hadoop.io.UTF8#set() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FSImageSerialization.java From RDFS with Apache License 2.0 | 4 votes |
@SuppressWarnings("deprecation") static void writeString(String str, DataOutputStream out) throws IOException { UTF8 ustr = TL_DATA.get().U_STR; ustr.set(str, true); ustr.write(out); }
Example 2
Source File: FSImageSerialization.java From RDFS with Apache License 2.0 | 4 votes |
/** write the long value */ static void writeLongAsString(long value, DataOutputStream out) throws IOException { UTF8 ustr = TL_DATA.get().U_STR; ustr.set(toLogLong(value), true); ustr.write(out); }
Example 3
Source File: FSImageSerialization.java From RDFS with Apache License 2.0 | 4 votes |
/** write the long value */ static void writeShortAsString(short value, DataOutputStream out) throws IOException { UTF8 ustr = TL_DATA.get().U_STR; ustr.set(toLogShort(value), true); ustr.write(out); }