Package org.stellar.sdk.xdr
Class SerializedBinaryFuseFilter
java.lang.Object
org.stellar.sdk.xdr.SerializedBinaryFuseFilter
SerializedBinaryFuseFilter's original definition in the XDR file is:
struct SerializedBinaryFuseFilter { BinaryFuseFilterType type; // Seed used to hash input to filter ShortHashSeed inputHashSeed; // Seed used for internal filter hash operations ShortHashSeed filterSeed; uint32 segmentLength; uint32 segementLengthMask; uint32 segmentCount; uint32 segmentCountLength; uint32 fingerprintLength; // Length in terms of element count, not bytes // Array of uint8_t, uint16_t, or uint32_t depending on filter type opaque fingerprints<>; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionSerializedBinaryFuseFilter
(BinaryFuseFilterType type, ShortHashSeed inputHashSeed, ShortHashSeed filterSeed, Uint32 segmentLength, Uint32 segementLengthMask, Uint32 segmentCount, Uint32 segmentCountLength, Uint32 fingerprintLength, byte[] fingerprints) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SerializedBinaryFuseFilter
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SerializedBinaryFuseFilter
fromXdrBase64
(String xdr) static SerializedBinaryFuseFilter
fromXdrByteArray
(byte[] xdr) byte[]
getType()
int
hashCode()
void
setFilterSeed
(ShortHashSeed filterSeed) void
setFingerprintLength
(Uint32 fingerprintLength) void
setFingerprints
(byte[] fingerprints) void
setInputHashSeed
(ShortHashSeed inputHashSeed) void
setSegementLengthMask
(Uint32 segementLengthMask) void
setSegmentCount
(Uint32 segmentCount) void
setSegmentCountLength
(Uint32 segmentCountLength) void
setSegmentLength
(Uint32 segmentLength) void
setType
(BinaryFuseFilterType type) toString()
default String
default byte[]
-
Constructor Details
-
SerializedBinaryFuseFilter
public SerializedBinaryFuseFilter() -
SerializedBinaryFuseFilter
public SerializedBinaryFuseFilter(BinaryFuseFilterType type, ShortHashSeed inputHashSeed, ShortHashSeed filterSeed, Uint32 segmentLength, Uint32 segementLengthMask, Uint32 segmentCount, Uint32 segmentCountLength, Uint32 fingerprintLength, byte[] fingerprints)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getType
-
getInputHashSeed
-
getFilterSeed
-
getSegmentLength
-
getSegementLengthMask
-
getSegmentCount
-
getSegmentCountLength
-
getFingerprintLength
-
getFingerprints
public byte[] getFingerprints() -
setType
-
setInputHashSeed
-
setFilterSeed
-
setSegmentLength
-
setSegementLengthMask
-
setSegmentCount
-
setSegmentCountLength
-
setFingerprintLength
-
setFingerprints
public void setFingerprints(byte[] fingerprints) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-