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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
KeysRpcQuery.Builder
RecordBuilder for KeysRpcQuery instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public int
skip
public int
take
public CryptoKeyOrderBy
orderBy
public KeyValuePairList
filter
-
Constructor Summary
Constructors Constructor Description KeysRpcQuery()
Default constructor. KeysRpcQuery(Integer skip, Integer take, CryptoKeyOrderBy orderBy, KeyValuePairList filter)
All-args constructor.
-
Method Summary
Modifier and Type Method Description int
getSkip()
Gets the value of the 'skip' field. void
setSkip(int value)
Sets the value of the 'skip' field. int
getTake()
Gets the value of the 'take' field. void
setTake(int value)
Sets the value of the 'take' field. CryptoKeyOrderBy
getOrderBy()
Gets the value of the 'orderBy' field. void
setOrderBy(CryptoKeyOrderBy value)
Sets the value of the 'orderBy' field. KeyValuePairList
getFilter()
Gets the value of the 'filter' field. void
setFilter(KeyValuePairList value)
Sets the value of the 'filter' field. static Schema
getClassSchema()
static BinaryMessageEncoder<KeysRpcQuery>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<KeysRpcQuery>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<KeysRpcQuery>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this KeysRpcQuery to a ByteBuffer. static KeysRpcQuery
fromByteBuffer(ByteBuffer b)
Deserializes a KeysRpcQuery from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static KeysRpcQuery.Builder
newBuilder()
Creates a new KeysRpcQuery RecordBuilder. static KeysRpcQuery.Builder
newBuilder(KeysRpcQuery.Builder other)
Creates a new KeysRpcQuery RecordBuilder by copying an existing Builder. static KeysRpcQuery.Builder
newBuilder(KeysRpcQuery other)
Creates a new KeysRpcQuery RecordBuilder by copying an existing KeysRpcQuery 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
-
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.
-
getOrderBy
CryptoKeyOrderBy getOrderBy()
Gets the value of the 'orderBy' field.
-
setOrderBy
void setOrderBy(CryptoKeyOrderBy value)
Sets the value of the 'orderBy' field. The order by.
- Parameters:
value
- the value to set.
-
getFilter
KeyValuePairList getFilter()
Gets the value of the 'filter' field.
-
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.
-
getClassSchema
static Schema getClassSchema()
-
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
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this KeysRpcQuery to a ByteBuffer.
-
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
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static KeysRpcQuery.Builder newBuilder()
Creates a new KeysRpcQuery RecordBuilder.
-
newBuilder
static KeysRpcQuery.Builder newBuilder(KeysRpcQuery.Builder other)
Creates a new KeysRpcQuery RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
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.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-