Class KeysRpcQuery

  • 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 KeysRpcQuery
    extends SpecificRecordBase implements SpecificRecord
                        

    Request to lookup for keys satisfying the filter condition. All filter values are combined as AND.

    • Constructor Detail

      • KeysRpcQuery

        KeysRpcQuery()
        Default constructor.
      • KeysRpcQuery

        KeysRpcQuery(Integer skip, Integer take, CryptoKeyOrderBy orderBy, KeyValuePairList filter)
        All-args constructor.
        Parameters:
        skip - The response paging information, number of records to skip.
        take - The response paging information, number of records to return, the actual number may be less than requested.
        orderBy - The order by.
        filter - Filter key-values such as category, schemeCodeName, alias, masterKeyAlias, createdAfter, createdBefore.
    • Method Detail

      • getSkip

         int getSkip()

        Gets the value of the 'skip' field.

      • setSkip

         void setSkip(int value)

        Sets the value of the 'skip' field. The response paging information, number of records to skip.

        Parameters:
        value - the value to set.
      • getTake

         int getTake()

        Gets the value of the 'take' field.

      • setTake

         void setTake(int value)

        Sets the value of the 'take' field. The response paging information, number of records to return, the actual number may be less than requested.

        Parameters:
        value - the value to set.
      • setOrderBy

         void setOrderBy(CryptoKeyOrderBy value)

        Sets the value of the 'orderBy' field. The order by.

        Parameters:
        value - the value to set.
      • setFilter

         void setFilter(KeyValuePairList value)

        Sets the value of the 'filter' field. Filter key-values such as category, schemeCodeName, alias, masterKeyAlias, createdAfter, createdBefore.

        Parameters:
        value - the value to set.
      • getEncoder

         static BinaryMessageEncoder<KeysRpcQuery> getEncoder()

        Return the BinaryMessageEncoder instance used by this class.

      • getDecoder

         static BinaryMessageDecoder<KeysRpcQuery> getDecoder()

        Return the BinaryMessageDecoder instance used by this class.

      • createDecoder

         static BinaryMessageDecoder<KeysRpcQuery> 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
      • fromByteBuffer

         static KeysRpcQuery fromByteBuffer(ByteBuffer b)

        Deserializes a KeysRpcQuery from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class
      • newBuilder

         static KeysRpcQuery.Builder newBuilder(KeysRpcQuery other)

        Creates a new KeysRpcQuery RecordBuilder by copying an existing KeysRpcQuery instance.

        Parameters:
        other - The existing instance to copy.