public class CollectionArgs extends Args
CollectionArgs
class contains arguments for retrieving and
listing entities from a collection, such as the number of entities to return
and how to sort them.Modifier and Type | Class and Description |
---|---|
static class |
CollectionArgs.SortDirection
Indicates whether to sort entries in ascending or descending order.
|
static class |
CollectionArgs.SortMode
Indicates the sorting mode for entries.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
CollectionArgs()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setApp(String app)
Sets the app context in which to list the collection.
|
void |
setCount(int count)
Sets the maximum number of entries to return.
|
void |
setOffset(int offset)
Sets the index of the first entry to return.
|
void |
setOwner(String owner)
Sets the owner context in which to list the collection.
|
void |
setSearch(String search)
Sets a search query to filter the response.
|
void |
setSharing(String sharing)
Sets the sharing context in which to list the collection.
|
void |
setSortDirection(CollectionArgs.SortDirection sortDirection)
Sets the direction to sort entries.
|
void |
setSortKey(String sortKey)
Sets the field to use for sorting.
|
void |
setSortMode(CollectionArgs.SortMode sortMode)
Sets the mode to use for sorting.
|
add, create, create, create, encode, encode, encode, get
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setApp(String app)
app
- The app context in which to list the collection. A null
value indicates no app context, and a value of "-"
indicates an app wildcard.public void setOwner(String owner)
owner
- The owner context in which to list the collection. A value of "-"
indicates a wildcard, and a null
value indicates no owner context.public void setSharing(String sharing)
sharing
- The sharing context in which to list the collection. Valid values are "user", "app", "global", and "system".public void setCount(int count)
count
- The maximum number of entries to return. To return all entries, specify 0.public void setOffset(int offset)
offset
- The index of the first entry to return.public void setSearch(String search)
search
- A search query to filter the response.public void setSortDirection(CollectionArgs.SortDirection sortDirection)
sortDirection
- The sorting order--ascending or descending.public void setSortKey(String sortKey)
sortKey
- The field to sort by.public void setSortMode(CollectionArgs.SortMode sortMode)
sortMode
- The collating sequence for sorting entries.Copyright © 2022 Splunk, Inc.. All rights reserved.