public class SerializedBinaryFuseFilter extends java.lang.Object implements XdrElement
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<>; };
Modifier and Type | Class and Description |
---|---|
static class |
SerializedBinaryFuseFilter.SerializedBinaryFuseFilterBuilder |
Constructor and Description |
---|
SerializedBinaryFuseFilter() |
SerializedBinaryFuseFilter(BinaryFuseFilterType type,
ShortHashSeed inputHashSeed,
ShortHashSeed filterSeed,
Uint32 segmentLength,
Uint32 segementLengthMask,
Uint32 segmentCount,
Uint32 segmentCountLength,
Uint32 fingerprintLength,
byte[] fingerprints) |
toXdrBase64, toXdrByteArray
public SerializedBinaryFuseFilter()
public SerializedBinaryFuseFilter(BinaryFuseFilterType type, ShortHashSeed inputHashSeed, ShortHashSeed filterSeed, Uint32 segmentLength, Uint32 segementLengthMask, Uint32 segmentCount, Uint32 segmentCountLength, Uint32 fingerprintLength, byte[] fingerprints)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static SerializedBinaryFuseFilter decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static SerializedBinaryFuseFilter fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static SerializedBinaryFuseFilter fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static SerializedBinaryFuseFilter.SerializedBinaryFuseFilterBuilder builder()
public SerializedBinaryFuseFilter.SerializedBinaryFuseFilterBuilder toBuilder()
public BinaryFuseFilterType getType()
public ShortHashSeed getInputHashSeed()
public ShortHashSeed getFilterSeed()
public Uint32 getSegmentLength()
public Uint32 getSegementLengthMask()
public Uint32 getSegmentCount()
public Uint32 getSegmentCountLength()
public Uint32 getFingerprintLength()
public byte[] getFingerprints()
public void setType(BinaryFuseFilterType type)
public void setInputHashSeed(ShortHashSeed inputHashSeed)
public void setFilterSeed(ShortHashSeed filterSeed)
public void setSegmentLength(Uint32 segmentLength)
public void setSegementLengthMask(Uint32 segementLengthMask)
public void setSegmentCount(Uint32 segmentCount)
public void setSegmentCountLength(Uint32 segmentCountLength)
public void setFingerprintLength(Uint32 fingerprintLength)
public void setFingerprints(byte[] fingerprints)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object