本文整理匯總了Java中org.apache.hadoop.io.LongWritable.readFields方法的典型用法代碼示例。如果您正苦於以下問題:Java LongWritable.readFields方法的具體用法?Java LongWritable.readFields怎麽用?Java LongWritable.readFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.hadoop.io.LongWritable
的用法示例。
在下文中一共展示了LongWritable.readFields方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: readFields
import org.apache.hadoop.io.LongWritable; //導入方法依賴的package包/類
public void readFields(DataInput dataInput) throws IOException {
Text text = new Text();
text.readFields(dataInput);
wifiProb = text.toString();
LongWritable reader = new LongWritable();
reader.readFields(dataInput);
hour = reader.get();
reader.readFields(dataInput);
newCustomer = (int)reader.get();
reader.readFields(dataInput);
oldCustomer = (int)reader.get();
}
示例2: readLong
import org.apache.hadoop.io.LongWritable; //導入方法依賴的package包/類
/** read the long value */
static long readLong(DataInput in) throws IOException {
LongWritable uLong = TL_DATA.get().U_LONG;
uLong.readFields(in);
return uLong.get();
}