aries / net.globalid.aries.storage / WalletStorageManager / search

search

@JvmOverloads fun <T : BaseRecord> search(wallet: Wallet, type: Class<T>, query: SearchQuery = QueryBuilder.EMPTY_QUERY, options: SearchOptions = SearchOptions(), count: Int): Single<List<T>>

Searches special records in wallet by query and options with limit count. This method is important because Java doesn't work with inline methods with reified generic.

Parameters

wallet - where the record will be searched

type - is kind of the returning record

query - is set of filtering conditions

options - is searching configuration

count - is limit of returned values

Return
the list of found records

fun <reified T : BaseRecord> search(wallet: Wallet, query: SearchQuery = QueryBuilder.EMPTY_QUERY, options: SearchOptions = SearchOptions(), count: Int): Single<List<T>>

Searches special records in wallet by query and options with limit count.

Parameters

wallet - where the record will be searched

query - is set of filtering conditions

options - is searching configuration

count - is limit of returned values

Return
the list of found records