当前位置: 首页>>代码示例>>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;未经允许,请勿转载。