public static interface GenericStorableCodec.SearchKeyFactory<S extends Storable>
Storable
types. It is
intended for supporting queries and indexes.Modifier and Type | Method and Description |
---|---|
byte[] |
encodeSearchKey(java.lang.Object[] values)
Build a search key by supplying property values without a storable.
|
byte[] |
encodeSearchKey(java.lang.Object[] values,
int rangeStart,
int rangeEnd)
Build a search key by supplying property values without a storable.
|
byte[] |
encodeSearchKey(S storable)
Build a search key by extracting all the desired properties from the
given storable.
|
byte[] |
encodeSearchKey(S storable,
int rangeStart,
int rangeEnd)
Build a search key by extracting all the desired properties from the
given storable.
|
byte[] |
encodeSearchKeyPrefix()
Returns the search key for when there are no values.
|
byte[] encodeSearchKey(S storable)
storable
- extract a subset of properties from this instancebyte[] encodeSearchKey(S storable, int rangeStart, int rangeEnd)
storable
- extract a subset of properties from this instancerangeStart
- index of first property to use. Its value must be less
than the count of properties used by this factory.rangeEnd
- index of last property to use, exlusive. Its value must
be less than or equal to the count of properties used by this factory.byte[] encodeSearchKey(java.lang.Object[] values)
values
- values to build into a key. It must be long enough to
accommodate all of properties used by this factory.byte[] encodeSearchKey(java.lang.Object[] values, int rangeStart, int rangeEnd)
values
- values to build into a key. The length may be less than
the amount of properties used by this factory. It must not be less than the
difference between rangeStart and rangeEnd.rangeStart
- index of first property to use. Its value must be less
than the count of properties used by this factory.rangeEnd
- index of last property to use, exlusive. Its value must
be less than or equal to the count of properties used by this factory.byte[] encodeSearchKeyPrefix()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.