本文整理了Java中io.protostuff.Input.readUInt64()
方法的一些代码示例,展示了Input.readUInt64()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Input.readUInt64()
方法的具体详情如下:
包路径:io.protostuff.Input
类名称:Input
方法名:readUInt64
[英]Reads an unsigned long field value.
[中]读取无符号长字段值。
代码示例来源:origin: protostuff/protostuff
@Override
public long readUInt64() throws IOException
{
return input.readUInt64();
}
代码示例来源:origin: protostuff/protostuff
@Override
public void mergeFrom(Input input, UnsignedNumbers message) throws IOException
{
for (int number = input.readFieldNumber(this); ; number = input.readFieldNumber(this))
{
switch (number)
{
case 0:
return;
case 1:
message.uint32 = input.readUInt32();
break;
case 2:
message.uint64 = input.readUInt64();
break;
case 3:
message.fixed32 = input.readFixed32();
break;
case 4:
message.fixed64 = input.readFixed64();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: protostuff/protostuff
break;
case 12:
message.someUint64 = input.readUInt64();
break;
case 13:
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public Object readFrom(Input input) throws IOException {
return input.readUInt64();
}
代码示例来源:origin: org.apache.servicecomb/foundation-protobuf
@Override
public void mergeFrom(Input input, Object message) throws IOException {
setter.set(message, input.readUInt64());
}
代码示例来源:origin: NationalSecurityAgency/datawave
@Override
public void mergeFrom(Input input, FieldStat message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.field = input.readString();
break;
case 2:
message.unique = input.readUInt64();
break;
case 3:
message.observed = input.readUInt64();
break;
case 4:
message.selectivity = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, FileDetails message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setPath(input.readString());
break;
case 2:
message.setDate(new Date(input.readUInt64()));
break;
case 3:
message.setSize(input.readUInt64());
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, AccelerationMetrics message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.hits = input.readUInt64();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, UpgradeTaskRun message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.status = UpgradeStatus.valueOf(input.readEnum())
;
break;
case 2:
message.startTime = input.readUInt64();
break;
case 3:
message.endTime = input.readUInt64();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, DefaultDataDictionary message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setTotalResults(input.readUInt64());
break;
case 2:
if (message.fields == null) {
message.fields = new ArrayList<DefaultMetadataField>();
}
message.fields.add(input.mergeObject(null, DefaultMetadataField.getSchema()));
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, DefaultMetadataQueryResponse message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setTotalResults(input.readUInt64());
case 2:
if (message.fields == null) {
message.fields = new ArrayList<MetadataFieldBase>();
}
message.fields.add(input.mergeObject(null, DefaultMetadataField.getSchema()));
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, DefaultEdgeDictionary message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setTotalResults(input.readUInt64());
break;
case 2:
if (message.metadataList == null) {
message.metadataList = new ArrayList<DefaultMetadata>();
}
message.metadataList.add(input.mergeObject(null, DefaultMetadata.getSchema()));
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, DefaultFields message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setTotalResults(input.readUInt64());
break;
case 2:
if (message.fields == null) {
message.fields = Lists.newArrayList();
}
message.fields.add(input.mergeObject(null, DefaultDictionaryField.getSchema()));
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, MaterializationMetrics message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.footprint = input.readUInt64();
break;
case 2:
message.originalCost = input.readDouble();
break;
default:
input.handleUnknownField(number, this);
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, History message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setState(input.readString());
break;
case 2:
message.setTimestamp(input.readUInt64());
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, ResultFile message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setFileName(input.readString());
break;
case 2:
message.setLength(input.readUInt64());
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: NationalSecurityAgency/datawave
@Override
public void mergeFrom(Input input, DefaultFieldCardinality message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.columnVisibility = input.readString();
break;
case 2:
message.cardinality = input.readUInt64();
break;
case 3:
message.lower = input.readString();
break;
case 4:
message.upper = input.readString();
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: dremio/dremio-oss
message.version = input.readUInt64();
break;
case 3:
代码示例来源:origin: NationalSecurityAgency/datawave
public void mergeFrom(Input input, JobExecution message) throws IOException {
int number;
while ((number = input.readFieldNumber(this)) != 0) {
switch (number) {
case 1:
message.setMapReduceJobId(input.readString());
break;
case 2:
message.setTimestamp(input.readUInt64());
break;
case 3:
message.setState(input.readString());
break;
default:
input.handleUnknownField(number, this);
break;
}
}
}
代码示例来源:origin: dremio/dremio-oss
public void mergeFrom(Input input, AccelerationRequestApiDescriptor message) throws IOException
{
for(int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
{
switch(number)
{
case 0:
return;
case 1:
message.username = input.readString();
break;
case 2:
message.createdAt = input.readUInt64();
break;
case 3:
message.type = com.dremio.service.accelerator.proto.AccelerationType.valueOf(input.readEnum())
;
break;
case 4:
message.context = input.mergeObject(message.context, AccelerationRequestContext.getSchema())
;
break;
default:
input.handleUnknownField(number, this);
}
}
}
内容来源于网络,如有侵权,请联系作者删除!