當前位置: 首頁>>代碼示例>>Java>>正文


Java DataInput.readLong方法代碼示例

本文整理匯總了Java中java.io.DataInput.readLong方法的典型用法代碼示例。如果您正苦於以下問題:Java DataInput.readLong方法的具體用法?Java DataInput.readLong怎麽用?Java DataInput.readLong使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在java.io.DataInput的用法示例。


在下文中一共展示了DataInput.readLong方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: fromData

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
  super.fromData(in);
  this.processorId = in.readInt();
  this.regionName = in.readUTF();
  this.opType = operationType.values()[in.readShort()];
  this.updatesAsInvalidates = in.readBoolean();
  this.profileVersion = in.readLong();
  if (isCqOp(this.opType)) {
    this.serverCqName = in.readUTF();
    if (this.opType == operationType.REGISTER_CQ || this.opType == operationType.SET_CQ_STATE) {
      this.cq = CqServiceProvider.readCq(in);
    }
  } else {
    this.clientID = in.readLong();
    this.interest = DataSerializer.readObject(in);
  }
}
 
開發者ID:ampool,項目名稱:monarch,代碼行數:19,代碼來源:FilterProfile.java

示例2: fromData

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
  super.fromData(in);
  this.key = DataSerializer.readObject(in);
  this.processorId = in.readInt();
  this.result = DataSerializer.readObject(in);
  this.lastModified = in.readLong();
  this.isPresent = in.readBoolean();
  this.isSerialized = in.readBoolean();
  this.requestorTimedOut = in.readBoolean();
  this.versionTag = (VersionTag) DataSerializer.readObject(in);
}
 
開發者ID:ampool,項目名稱:monarch,代碼行數:13,代碼來源:SearchLoadAndWriteProcessor.java

示例3: readMember

import java.io.DataInput; //導入方法依賴的package包/類
@Override
protected DiskStoreID readMember(DataInput in) throws IOException {
  long mostSignificantBits = in.readLong();
  long leastSignificantBits = in.readLong();
  DiskStoreID member = new DiskStoreID(mostSignificantBits, leastSignificantBits);
  return member;
}
 
開發者ID:ampool,項目名稱:monarch,代碼行數:8,代碼來源:DiskRegionVersionVector.java

示例4: fromData

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void fromData(DataInput in) throws IOException, ClassNotFoundException {
  super.fromData(in);
  this.lastAccessed = in.readLong();
  this.hitCount = in.readLong();
  this.missCount = in.readLong();
}
 
開發者ID:ampool,項目名稱:monarch,代碼行數:8,代碼來源:NonLocalRegionEntryWithStats.java

示例5: readFields

import java.io.DataInput; //導入方法依賴的package包/類
public void readFields(DataInput in) throws IOException {
  this.jvmId = in.readLong();
  this.jobId.readFields(in);
  this.isMap = in.readBoolean();
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:6,代碼來源:JVMId.java

示例6: readFields

import java.io.DataInput; //導入方法依賴的package包/類
@Override
/** {@inheritDoc} */
public void readFields(DataInput input) throws IOException {
  start = input.readLong();
  end = input.readLong();
}
 
開發者ID:aliyun,項目名稱:aliyun-maxcompute-data-collectors,代碼行數:7,代碼來源:DBInputFormat.java

示例7: readFields

import java.io.DataInput; //導入方法依賴的package包/類
public void readFields(DataInput in) throws IOException {
  this.offset = in.readLong();
  this.fileName = Text.readString(in);
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:5,代碼來源:MultiFileWordCount.java

示例8: read

import java.io.DataInput; //導入方法依賴的package包/類
/** Read ArithmeticProgression from DataInput */
private static ArithmeticProgression read(DataInput in) throws IOException {
  return new ArithmeticProgression(in.readChar(),
      in.readLong(), in.readLong(), in.readLong());
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:6,代碼來源:SummationWritable.java

示例9: readFields

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void readFields(DataInput in) throws IOException {
  this.url = Text.readString(in);
  this.referrer = Text.readString(in);
  this.time = in.readLong();
}
 
開發者ID:naver,項目名稱:hadoop,代碼行數:7,代碼來源:DBCountPageView.java

示例10: read

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void read(DataInput stream) throws Exception{
    this.data = new UUID(stream.readLong(), stream.readLong());
}
 
開發者ID:RockBottomGame,項目名稱:API,代碼行數:5,代碼來源:PartUniqueId.java

示例11: read

import java.io.DataInput; //導入方法依賴的package包/類
void read(DataInput input, int depth, NBTSizeTracker sizeTracker) throws IOException
{
    sizeTracker.read(128L);
    this.data = input.readLong();
}
 
開發者ID:SkidJava,項目名稱:BaseClient,代碼行數:6,代碼來源:NBTTagLong.java

示例12: readUptime

import java.io.DataInput; //導入方法依賴的package包/類
protected void readUptime(final DataInput in) throws IOException {
  this.uptime = in.readLong();
}
 
開發者ID:ampool,項目名稱:monarch,代碼行數:4,代碼來源:LocatorStatusResponse.java

示例13: readExternal

import java.io.DataInput; //導入方法依賴的package包/類
static Instant readExternal(DataInput in) throws IOException {
    long seconds = in.readLong();
    int nanos = in.readInt();
    return Instant.ofEpochSecond(seconds, nanos);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:6,代碼來源:Instant.java

示例14: readData

import java.io.DataInput; //導入方法依賴的package包/類
@Override
public void readData(DataInput input) throws IOException {
	lastRate = input.readDouble();
	lastTime = input.readLong();
}
 
開發者ID:akharchuk,項目名稱:rate-limiting,代碼行數:6,代碼來源:EMARateHistory.java

示例15: readLongArray

import java.io.DataInput; //導入方法依賴的package包/類
private void readLongArray(DataInput in) throws IOException {
  long[] v = (long[]) value;
  for (int i = 0; i < length; i++)
    v[i] = in.readLong(); 
}
 
開發者ID:nucypher,項目名稱:hadoop-oss,代碼行數:6,代碼來源:ArrayPrimitiveWritable.java


注:本文中的java.io.DataInput.readLong方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。