Package ai.heavy.thrift.server
Class TSerializedRows
- java.lang.Object
-
- ai.heavy.thrift.server.TSerializedRows
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TSerializedRows>,org.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>,org.apache.thrift.TSerializable
public class TSerializedRows extends Object implements org.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>, Serializable, Cloneable, Comparable<TSerializedRows>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTSerializedRows._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description List<Long>buffer_lengthsList<ByteBuffer>bufferslongbuffers_total_sizeList<TCountDistinctSet>count_distinct_setsTResultSetBufferDescriptordescriptorStringexplanationstatic Map<TSerializedRows._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapList<Long>target_init_valsList<TTargetInfo>targetsinttotal_compression_time_msList<ByteBuffer>varlen_buffer
-
Constructor Summary
Constructors Constructor Description TSerializedRows()TSerializedRows(TSerializedRows other)Performs a deep copy on other.TSerializedRows(List<ByteBuffer> buffers, List<Long> buffer_lengths, long buffers_total_size, int total_compression_time_ms, TResultSetBufferDescriptor descriptor, List<TTargetInfo> targets, List<Long> target_init_vals, List<ByteBuffer> varlen_buffer, List<TCountDistinctSet> count_distinct_sets, String explanation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBuffer_lengths(long elem)voidaddToBuffers(ByteBuffer elem)voidaddToCount_distinct_sets(TCountDistinctSet elem)voidaddToTarget_init_vals(long elem)voidaddToTargets(TTargetInfo elem)voidaddToVarlen_buffer(ByteBuffer elem)voidclear()intcompareTo(TSerializedRows other)TSerializedRowsdeepCopy()booleanequals(TSerializedRows that)booleanequals(Object that)TSerializedRows._FieldsfieldForId(int fieldId)List<Long>getBuffer_lengths()Iterator<Long>getBuffer_lengthsIterator()intgetBuffer_lengthsSize()List<ByteBuffer>getBuffers()longgetBuffers_total_size()Iterator<ByteBuffer>getBuffersIterator()intgetBuffersSize()List<TCountDistinctSet>getCount_distinct_sets()Iterator<TCountDistinctSet>getCount_distinct_setsIterator()intgetCount_distinct_setsSize()TResultSetBufferDescriptorgetDescriptor()StringgetExplanation()ObjectgetFieldValue(TSerializedRows._Fields field)List<Long>getTarget_init_vals()Iterator<Long>getTarget_init_valsIterator()intgetTarget_init_valsSize()List<TTargetInfo>getTargets()Iterator<TTargetInfo>getTargetsIterator()intgetTargetsSize()intgetTotal_compression_time_ms()List<ByteBuffer>getVarlen_buffer()Iterator<ByteBuffer>getVarlen_bufferIterator()intgetVarlen_bufferSize()inthashCode()booleanisSet(TSerializedRows._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetBuffer_lengths()Returns true if field buffer_lengths is set (has been assigned a value) and false otherwisebooleanisSetBuffers()Returns true if field buffers is set (has been assigned a value) and false otherwisebooleanisSetBuffers_total_size()Returns true if field buffers_total_size is set (has been assigned a value) and false otherwisebooleanisSetCount_distinct_sets()Returns true if field count_distinct_sets is set (has been assigned a value) and false otherwisebooleanisSetDescriptor()Returns true if field descriptor is set (has been assigned a value) and false otherwisebooleanisSetExplanation()Returns true if field explanation is set (has been assigned a value) and false otherwisebooleanisSetTarget_init_vals()Returns true if field target_init_vals is set (has been assigned a value) and false otherwisebooleanisSetTargets()Returns true if field targets is set (has been assigned a value) and false otherwisebooleanisSetTotal_compression_time_ms()Returns true if field total_compression_time_ms is set (has been assigned a value) and false otherwisebooleanisSetVarlen_buffer()Returns true if field varlen_buffer is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TSerializedRowssetBuffer_lengths(List<Long> buffer_lengths)voidsetBuffer_lengthsIsSet(boolean value)TSerializedRowssetBuffers(List<ByteBuffer> buffers)TSerializedRowssetBuffers_total_size(long buffers_total_size)voidsetBuffers_total_sizeIsSet(boolean value)voidsetBuffersIsSet(boolean value)TSerializedRowssetCount_distinct_sets(List<TCountDistinctSet> count_distinct_sets)voidsetCount_distinct_setsIsSet(boolean value)TSerializedRowssetDescriptor(TResultSetBufferDescriptor descriptor)voidsetDescriptorIsSet(boolean value)TSerializedRowssetExplanation(String explanation)voidsetExplanationIsSet(boolean value)voidsetFieldValue(TSerializedRows._Fields field, Object value)TSerializedRowssetTarget_init_vals(List<Long> target_init_vals)voidsetTarget_init_valsIsSet(boolean value)TSerializedRowssetTargets(List<TTargetInfo> targets)voidsetTargetsIsSet(boolean value)TSerializedRowssetTotal_compression_time_ms(int total_compression_time_ms)voidsetTotal_compression_time_msIsSet(boolean value)TSerializedRowssetVarlen_buffer(List<ByteBuffer> varlen_buffer)voidsetVarlen_bufferIsSet(boolean value)StringtoString()voidunsetBuffer_lengths()voidunsetBuffers()voidunsetBuffers_total_size()voidunsetCount_distinct_sets()voidunsetDescriptor()voidunsetExplanation()voidunsetTarget_init_vals()voidunsetTargets()voidunsetTotal_compression_time_ms()voidunsetVarlen_buffer()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
buffers
public List<ByteBuffer> buffers
-
buffers_total_size
public long buffers_total_size
-
total_compression_time_ms
public int total_compression_time_ms
-
descriptor
public TResultSetBufferDescriptor descriptor
-
targets
public List<TTargetInfo> targets
-
varlen_buffer
public List<ByteBuffer> varlen_buffer
-
count_distinct_sets
public List<TCountDistinctSet> count_distinct_sets
-
explanation
public String explanation
-
metaDataMap
public static final Map<TSerializedRows._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TSerializedRows
public TSerializedRows()
-
TSerializedRows
public TSerializedRows(List<ByteBuffer> buffers, List<Long> buffer_lengths, long buffers_total_size, int total_compression_time_ms, TResultSetBufferDescriptor descriptor, List<TTargetInfo> targets, List<Long> target_init_vals, List<ByteBuffer> varlen_buffer, List<TCountDistinctSet> count_distinct_sets, String explanation)
-
TSerializedRows
public TSerializedRows(TSerializedRows other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TSerializedRows deepCopy()
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
getBuffersSize
public int getBuffersSize()
-
getBuffersIterator
public Iterator<ByteBuffer> getBuffersIterator()
-
addToBuffers
public void addToBuffers(ByteBuffer elem)
-
getBuffers
public List<ByteBuffer> getBuffers()
-
setBuffers
public TSerializedRows setBuffers(List<ByteBuffer> buffers)
-
unsetBuffers
public void unsetBuffers()
-
isSetBuffers
public boolean isSetBuffers()
Returns true if field buffers is set (has been assigned a value) and false otherwise
-
setBuffersIsSet
public void setBuffersIsSet(boolean value)
-
getBuffer_lengthsSize
public int getBuffer_lengthsSize()
-
addToBuffer_lengths
public void addToBuffer_lengths(long elem)
-
setBuffer_lengths
public TSerializedRows setBuffer_lengths(List<Long> buffer_lengths)
-
unsetBuffer_lengths
public void unsetBuffer_lengths()
-
isSetBuffer_lengths
public boolean isSetBuffer_lengths()
Returns true if field buffer_lengths is set (has been assigned a value) and false otherwise
-
setBuffer_lengthsIsSet
public void setBuffer_lengthsIsSet(boolean value)
-
getBuffers_total_size
public long getBuffers_total_size()
-
setBuffers_total_size
public TSerializedRows setBuffers_total_size(long buffers_total_size)
-
unsetBuffers_total_size
public void unsetBuffers_total_size()
-
isSetBuffers_total_size
public boolean isSetBuffers_total_size()
Returns true if field buffers_total_size is set (has been assigned a value) and false otherwise
-
setBuffers_total_sizeIsSet
public void setBuffers_total_sizeIsSet(boolean value)
-
getTotal_compression_time_ms
public int getTotal_compression_time_ms()
-
setTotal_compression_time_ms
public TSerializedRows setTotal_compression_time_ms(int total_compression_time_ms)
-
unsetTotal_compression_time_ms
public void unsetTotal_compression_time_ms()
-
isSetTotal_compression_time_ms
public boolean isSetTotal_compression_time_ms()
Returns true if field total_compression_time_ms is set (has been assigned a value) and false otherwise
-
setTotal_compression_time_msIsSet
public void setTotal_compression_time_msIsSet(boolean value)
-
getDescriptor
public TResultSetBufferDescriptor getDescriptor()
-
setDescriptor
public TSerializedRows setDescriptor(TResultSetBufferDescriptor descriptor)
-
unsetDescriptor
public void unsetDescriptor()
-
isSetDescriptor
public boolean isSetDescriptor()
Returns true if field descriptor is set (has been assigned a value) and false otherwise
-
setDescriptorIsSet
public void setDescriptorIsSet(boolean value)
-
getTargetsSize
public int getTargetsSize()
-
getTargetsIterator
public Iterator<TTargetInfo> getTargetsIterator()
-
addToTargets
public void addToTargets(TTargetInfo elem)
-
getTargets
public List<TTargetInfo> getTargets()
-
setTargets
public TSerializedRows setTargets(List<TTargetInfo> targets)
-
unsetTargets
public void unsetTargets()
-
isSetTargets
public boolean isSetTargets()
Returns true if field targets is set (has been assigned a value) and false otherwise
-
setTargetsIsSet
public void setTargetsIsSet(boolean value)
-
getTarget_init_valsSize
public int getTarget_init_valsSize()
-
addToTarget_init_vals
public void addToTarget_init_vals(long elem)
-
setTarget_init_vals
public TSerializedRows setTarget_init_vals(List<Long> target_init_vals)
-
unsetTarget_init_vals
public void unsetTarget_init_vals()
-
isSetTarget_init_vals
public boolean isSetTarget_init_vals()
Returns true if field target_init_vals is set (has been assigned a value) and false otherwise
-
setTarget_init_valsIsSet
public void setTarget_init_valsIsSet(boolean value)
-
getVarlen_bufferSize
public int getVarlen_bufferSize()
-
getVarlen_bufferIterator
public Iterator<ByteBuffer> getVarlen_bufferIterator()
-
addToVarlen_buffer
public void addToVarlen_buffer(ByteBuffer elem)
-
getVarlen_buffer
public List<ByteBuffer> getVarlen_buffer()
-
setVarlen_buffer
public TSerializedRows setVarlen_buffer(List<ByteBuffer> varlen_buffer)
-
unsetVarlen_buffer
public void unsetVarlen_buffer()
-
isSetVarlen_buffer
public boolean isSetVarlen_buffer()
Returns true if field varlen_buffer is set (has been assigned a value) and false otherwise
-
setVarlen_bufferIsSet
public void setVarlen_bufferIsSet(boolean value)
-
getCount_distinct_setsSize
public int getCount_distinct_setsSize()
-
getCount_distinct_setsIterator
public Iterator<TCountDistinctSet> getCount_distinct_setsIterator()
-
addToCount_distinct_sets
public void addToCount_distinct_sets(TCountDistinctSet elem)
-
getCount_distinct_sets
public List<TCountDistinctSet> getCount_distinct_sets()
-
setCount_distinct_sets
public TSerializedRows setCount_distinct_sets(List<TCountDistinctSet> count_distinct_sets)
-
unsetCount_distinct_sets
public void unsetCount_distinct_sets()
-
isSetCount_distinct_sets
public boolean isSetCount_distinct_sets()
Returns true if field count_distinct_sets is set (has been assigned a value) and false otherwise
-
setCount_distinct_setsIsSet
public void setCount_distinct_setsIsSet(boolean value)
-
getExplanation
public String getExplanation()
-
setExplanation
public TSerializedRows setExplanation(String explanation)
-
unsetExplanation
public void unsetExplanation()
-
isSetExplanation
public boolean isSetExplanation()
Returns true if field explanation is set (has been assigned a value) and false otherwise
-
setExplanationIsSet
public void setExplanationIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TSerializedRows._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
getFieldValue
public Object getFieldValue(TSerializedRows._Fields field)
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
isSet
public boolean isSet(TSerializedRows._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
equals
public boolean equals(TSerializedRows that)
-
compareTo
public int compareTo(TSerializedRows other)
- Specified by:
compareToin interfaceComparable<TSerializedRows>
-
fieldForId
public TSerializedRows._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TSerializedRows,TSerializedRows._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-