public class StructuredWriter extends Object
| Constructor and Description |
|---|
StructuredWriter(DataOutputBlobWriter<?> channelWriter) |
| Modifier and Type | Method and Description |
|---|---|
void |
fullIndexWriteFrom(int indexSizeInBytes,
DataInputBlobReader<RawDataSchema> reader) |
void |
selectStruct(int structId)
Defines the record after fields are defined
|
void |
selectStruct(Object assoc)
Defines the record after fields are defined
|
ChannelWriter |
writeBlob(long fieldId)
Writes blob to specified field in pipe
|
ChannelWriter |
writeBlob(Object assoc)
Writes blob to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeBoolean(boolean value,
long fieldId)
Writes boolean to specified field in pipe
|
void |
writeBoolean(Object assoc,
boolean value)
Writes boolean to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeBooleanNull(long fieldId)
Writes null boolean to specified field in pipe
|
void |
writeByte(int value,
long fieldId)
Writes byte to specified field in pipe
|
void |
writeByte(Object assoc,
byte value)
Writes byte to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeDecimal(long m,
byte e,
long fieldId)
Writes decimal to specified field in pipe
|
void |
writeDecimal(Object assoc,
long m,
byte e)
Writes decimal to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeDouble(double value,
long fieldId)
Writes double to specified field in pipe
|
void |
writeFloat(float value,
long fieldId)
Writes float to specified field in pipe
|
void |
writeInt(int value,
long fieldId)
Writes int to specified field in pipe
|
void |
writeInt(Object assoc)
Writes null to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeInt(Object assoc,
int value)
Writes int to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeIntNull(long fieldId)
Writes int null to specified field in pipe
|
void |
writeLong(long value,
long fieldId)
Writes long to specified field in pipe
|
void |
writeLong(Object assoc,
long value)
Writes long to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeLongNull(long fieldId)
Writes long null to specified field in pipe
|
void |
writeLongNull(Object assoc)
Writes long null to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeNull(long fieldId)
Writes null to specified field in pipe
|
void |
writeNull(Object assocObject)
Writes null to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeRational(long numerator,
long denominator,
long fieldId)
Writes rational to specified field in pipe
|
void |
writeRational(Object assoc,
long numerator,
long denominator)
Writes rational to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeShort(Object assoc)
Writes null to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeShort(Object assoc,
short value)
Writes short to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
void |
writeShort(short value,
long fieldId)
Writes short to specified field in pipe
|
void |
writeShortNull(long fieldId) |
Appendable |
writeText(long fieldId)
Writes text to specified field in pipe
|
void |
writeText(Object assoc,
CharSequence text)
Writes CharSequence to specified field in pipe
calls selectStruct(id) only after setting all the object fields
|
public StructuredWriter(DataOutputBlobWriter<?> channelWriter)
public void writeInt(Object assoc)
assoc - field association showing where to writepublic void writeInt(Object assoc, int value)
assoc - field association showing where to writevalue - int to be writtenpublic void writeShort(Object assoc)
assoc - field association showing where to writepublic void writeShort(Object assoc, short value)
assoc - field association showing where to writevalue - short to be writtenpublic void writeByte(Object assoc, byte value)
assoc - field association showing where to writevalue - byte to be writtenpublic void writeText(Object assoc, CharSequence text)
assoc - field association showing where to writetext - CharSequence to be writtenpublic void selectStruct(Object assoc)
public void selectStruct(int structId)
public ChannelWriter writeBlob(Object assoc)
assoc - field association showing where to writepublic ChannelWriter writeBlob(long fieldId)
fieldId - field association showing where to writepublic Appendable writeText(long fieldId)
fieldId - field to write topublic void writeBoolean(boolean value,
long fieldId)
value - true or falsefieldId - field to write topublic void writeBooleanNull(long fieldId)
fieldId - field to write topublic void writeBoolean(Object assoc, boolean value)
assoc - field association showing where to writevalue - true or falsepublic void writeLongNull(long fieldId)
fieldId - field to write topublic void writeLong(long value,
long fieldId)
value - long to be writtenfieldId - field to write topublic void writeLong(Object assoc, long value)
assoc - field association showing where to writevalue - long to be writtenpublic void writeLongNull(Object assoc)
assoc - field association showing where to writepublic void writeIntNull(long fieldId)
fieldId - field to write topublic void writeInt(int value,
long fieldId)
value - int to be writtenfieldId - field to be written topublic void writeNull(Object assocObject)
assocObject - field association showing where to writepublic void writeNull(long fieldId)
fieldId - field to be written topublic void writeShortNull(long fieldId)
public void writeShort(short value,
long fieldId)
value - short to be writtenfieldId - field to be written topublic void writeByte(int value,
long fieldId)
value - to be writtenfieldId - field to be written topublic void writeDouble(double value,
long fieldId)
value - double to be writtenfieldId - field to be written topublic void writeFloat(float value,
long fieldId)
value - float to be writtenfieldId - field to be written topublic void writeRational(Object assoc, long numerator, long denominator)
assoc - field association showing where to writenumerator - of rational to be writtendenominator - of rational to be writtenpublic void writeRational(long numerator,
long denominator,
long fieldId)
numerator - of rational to be writtendenominator - of rational to be writtenfieldId - field to be written topublic void writeDecimal(Object assoc, long m, byte e)
assoc - field association showing where to writem - long to be writtene - byte to be writtenpublic void writeDecimal(long m,
byte e,
long fieldId)
m - long to be writtene - byte to be writtenfieldId - field to be written topublic void fullIndexWriteFrom(int indexSizeInBytes,
DataInputBlobReader<RawDataSchema> reader)
Copyright © 2018. All Rights Reserved.