本文整理了Java中io.protostuff.Output.writeBool()
方法的一些代码示例,展示了Output.writeBool()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Output.writeBool()
方法的具体详情如下:
包路径:io.protostuff.Output
类名称:Output
方法名:writeBool
[英]Writes a boolean field.
[中]写入布尔字段。
代码示例来源:origin: protostuff/protostuff
@Override
public void writeBool(int fieldNumber, boolean value, boolean repeated) throws IOException
{
output.writeBool(fieldNumber, value, repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Boolean value,
boolean repeated) throws IOException
{
output.writeBool(number, value.booleanValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Boolean value,
boolean repeated) throws IOException
{
output.writeBool(number, value.booleanValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, int number, Boolean value,
boolean repeated) throws IOException
{
output.writeBool(number, value.booleanValue(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeBool(number, input.readBool(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeBool(number, input.readBool(), repeated);
}
代码示例来源:origin: protostuff/protostuff
@Override
public void transfer(Pipe pipe, Input input, Output output, int number,
boolean repeated) throws IOException
{
output.writeBool(number, input.readBool(), repeated);
}
代码示例来源:origin: protostuff/protostuff
output.writeBool(ID_ARRAY_DATA, array[i], true);
output.writeBool(ID_ARRAY_DATA, v, true);
代码示例来源:origin: protostuff/protostuff
output.writeBool(ID_ARRAY_DATA, array[i], true);
output.writeBool(ID_ARRAY_DATA, v, true);
代码示例来源:origin: protostuff/protostuff
@Override
public void writeTo(Output output, Bar message) throws IOException
{
if (message.someInt != 0)
output.writeInt32(1, message.someInt, false);
if (message.someString != null)
output.writeString(2, message.someString, false);
if (message.someBaz != null)
output.writeObject(3, message.someBaz, Baz.getSchema(), false);
if (message.someEnum != null)
output.writeEnum(4, message.someEnum.number, false);
if (message.someBytes != null)
output.writeBytes(5, message.someBytes, false);
if (message.someBoolean)
output.writeBool(6, message.someBoolean, false);
if (message.someFloat != 0f)
output.writeFloat(7, message.someFloat, false);
if (message.someDouble != 0d)
output.writeDouble(8, message.someDouble, false);
if (message.someLong != 0l)
output.writeInt64(9, message.someLong, false);
}
代码示例来源:origin: protostuff/protostuff
output.writeBool(6, value, true);
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, ParquetFileConfig message) throws IOException
{
if(message.autoCorrectCorruptDates != null && message.autoCorrectCorruptDates != DEFAULT_AUTO_CORRECT_CORRUPT_DATES)
output.writeBool(1, message.autoCorrectCorruptDates, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, ExcelFileConfig message) throws IOException
{
if(message.sheetName != null)
output.writeString(1, message.sheetName, false);
if(message.extractHeader != null && message.extractHeader != DEFAULT_EXTRACT_HEADER)
output.writeBool(2, message.extractHeader, false);
if(message.hasMergedCells != null && message.hasMergedCells != DEFAULT_HAS_MERGED_CELLS)
output.writeBool(3, message.hasMergedCells, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.GeneralRPCProtos.Ack message) throws java.io.IOException
{
if(message.hasOk())
output.writeBool(1, message.getOk(), false);
}
public boolean isInitialized(com.dremio.exec.proto.GeneralRPCProtos.Ack message)
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, GetQueryPlanFragments message) throws IOException
{
if(message.query == null)
throw new UninitializedMessageException(message);
output.writeString(1, message.query, false);
if(message.type != null)
output.writeEnum(2, message.type.number, false);
if(message.splitPlan != null && message.splitPlan != DEFAULT_SPLIT_PLAN)
output.writeBool(3, message.splitPlan, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, ReplacePatternRule message) throws IOException
{
if(message.selectionType == null)
throw new UninitializedMessageException(message);
output.writeEnum(1, message.selectionType.number, false);
if(message.selectionPattern != null)
output.writeString(2, message.selectionPattern, false);
if(message.ignoreCase != null)
output.writeBool(3, message.ignoreCase, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, FilterCleanData message) throws IOException
{
if(message.desiredType == null)
throw new UninitializedMessageException(message);
output.writeEnum(1, message.desiredType.number, false);
if(message.castWhenPossible == null)
throw new UninitializedMessageException(message);
output.writeBool(2, message.castWhenPossible, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, JobUpdate message) throws IOException
{
if(message.recordsProcessed == null)
throw new UninitializedMessageException(message);
output.writeInt64(1, message.recordsProcessed, false);
if(message.isComplete == null)
throw new UninitializedMessageException(message);
output.writeBool(2, message.isComplete, false);
if(message.state != null)
output.writeEnum(3, message.state.number, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(Output output, SplitRule message) throws IOException
{
if(message.pattern == null)
throw new UninitializedMessageException(message);
output.writeString(1, message.pattern, false);
if(message.matchType == null)
throw new UninitializedMessageException(message);
output.writeEnum(2, message.matchType.number, false);
if(message.ignoreCase == null)
throw new UninitializedMessageException(message);
output.writeBool(3, message.ignoreCase, false);
}
代码示例来源:origin: dremio/dremio-oss
public void writeTo(io.protostuff.Output output, com.dremio.exec.proto.UserBitShared.RecordBatchDef message) throws java.io.IOException
{
if(message.hasRecordCount())
output.writeInt32(1, message.getRecordCount(), false);
for(com.dremio.exec.proto.UserBitShared.SerializedField field : message.getFieldList())
output.writeObject(2, field, com.dremio.exec.proto.SchemaUserBitShared.SerializedField.WRITE, true);
if(message.hasCarriesTwoByteSelectionVector())
output.writeBool(3, message.getCarriesTwoByteSelectionVector(), false);
}
public boolean isInitialized(com.dremio.exec.proto.UserBitShared.RecordBatchDef message)
内容来源于网络,如有侵权,请联系作者删除!