本文整理汇总了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);
}
}
示例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);
}
示例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;
}
示例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();
}
示例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();
}
示例6: readFields
import java.io.DataInput; //导入方法依赖的package包/类
@Override
/** {@inheritDoc} */
public void readFields(DataInput input) throws IOException {
start = input.readLong();
end = input.readLong();
}
示例7: readFields
import java.io.DataInput; //导入方法依赖的package包/类
public void readFields(DataInput in) throws IOException {
this.offset = in.readLong();
this.fileName = Text.readString(in);
}
示例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());
}
示例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();
}
示例10: read
import java.io.DataInput; //导入方法依赖的package包/类
@Override
public void read(DataInput stream) throws Exception{
this.data = new UUID(stream.readLong(), stream.readLong());
}
示例11: read
import java.io.DataInput; //导入方法依赖的package包/类
void read(DataInput input, int depth, NBTSizeTracker sizeTracker) throws IOException
{
sizeTracker.read(128L);
this.data = input.readLong();
}
示例12: readUptime
import java.io.DataInput; //导入方法依赖的package包/类
protected void readUptime(final DataInput in) throws IOException {
this.uptime = in.readLong();
}
示例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);
}
示例14: readData
import java.io.DataInput; //导入方法依赖的package包/类
@Override
public void readData(DataInput input) throws IOException {
lastRate = input.readDouble();
lastTime = input.readLong();
}
示例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();
}