Class UtxoTransactionOutput
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class UtxoTransactionOutput extends SpecificRecordBase implements SpecificRecord
Transaction output data of signed transaction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
UtxoTransactionOutput.Builder
RecordBuilder for UtxoTransactionOutput instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
transactionId
public int
index
public ByteBuffer
info
public ByteBuffer
data
-
Constructor Summary
Constructors Constructor Description UtxoTransactionOutput()
Default constructor. UtxoTransactionOutput(String transactionId, Integer index, ByteBuffer info, ByteBuffer data)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getTransactionId()
Gets the value of the 'transactionId' field. void
setTransactionId(String value)
Sets the value of the 'transactionId' field. int
getIndex()
Gets the value of the 'index' field. void
setIndex(int value)
Sets the value of the 'index' field. ByteBuffer
getInfo()
Gets the value of the 'info' field. void
setInfo(ByteBuffer value)
Sets the value of the 'info' field. ByteBuffer
getData()
Gets the value of the 'data' field. void
setData(ByteBuffer value)
Sets the value of the 'data' field. static Schema
getClassSchema()
static BinaryMessageEncoder<UtxoTransactionOutput>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<UtxoTransactionOutput>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<UtxoTransactionOutput>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this UtxoTransactionOutput to a ByteBuffer. static UtxoTransactionOutput
fromByteBuffer(ByteBuffer b)
Deserializes a UtxoTransactionOutput from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static UtxoTransactionOutput.Builder
newBuilder()
Creates a new UtxoTransactionOutput RecordBuilder. static UtxoTransactionOutput.Builder
newBuilder(UtxoTransactionOutput.Builder other)
Creates a new UtxoTransactionOutput RecordBuilder by copying an existing Builder. static UtxoTransactionOutput.Builder
newBuilder(UtxoTransactionOutput other)
Creates a new UtxoTransactionOutput RecordBuilder by copying an existing UtxoTransactionOutput instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UtxoTransactionOutput
UtxoTransactionOutput()
Default constructor.
-
UtxoTransactionOutput
UtxoTransactionOutput(String transactionId, Integer index, ByteBuffer info, ByteBuffer data)
All-args constructor.- Parameters:
transactionId
- The transaction ID, derived from the root hash of its Merkle treeindex
- The index of the transaction outputinfo
- Transaction output infodata
- Transaction output data
-
-
Method Detail
-
getTransactionId
String getTransactionId()
Gets the value of the 'transactionId' field.
-
setTransactionId
void setTransactionId(String value)
Sets the value of the 'transactionId' field. The transaction ID, derived from the root hash of its Merkle tree
- Parameters:
value
- the value to set.
-
getIndex
int getIndex()
Gets the value of the 'index' field.
-
setIndex
void setIndex(int value)
Sets the value of the 'index' field. The index of the transaction output
- Parameters:
value
- the value to set.
-
getInfo
ByteBuffer getInfo()
Gets the value of the 'info' field.
-
setInfo
void setInfo(ByteBuffer value)
Sets the value of the 'info' field. Transaction output info
- Parameters:
value
- the value to set.
-
getData
ByteBuffer getData()
Gets the value of the 'data' field.
-
setData
void setData(ByteBuffer value)
Sets the value of the 'data' field. Transaction output data
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<UtxoTransactionOutput> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<UtxoTransactionOutput> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<UtxoTransactionOutput> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this UtxoTransactionOutput to a ByteBuffer.
-
fromByteBuffer
static UtxoTransactionOutput fromByteBuffer(ByteBuffer b)
Deserializes a UtxoTransactionOutput from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static UtxoTransactionOutput.Builder newBuilder()
Creates a new UtxoTransactionOutput RecordBuilder.
-
newBuilder
static UtxoTransactionOutput.Builder newBuilder(UtxoTransactionOutput.Builder other)
Creates a new UtxoTransactionOutput RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static UtxoTransactionOutput.Builder newBuilder(UtxoTransactionOutput other)
Creates a new UtxoTransactionOutput RecordBuilder by copying an existing UtxoTransactionOutput instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-