Class GetIndexesRequest (2.0.0)

public final class GetIndexesRequest

A request to get a range of indexes. You can specify a number of restrictions, such as the number of indexes to return, the prefix with which names of the returned indexes must begin, etc.

A namespace may be specified, otherwise the default namespace will be used. Only the indexes defined in the namespace, default or otherwise, will be returned.


   GetIndexesRequest request = GetIndexesRequest.newBuilder()
       .setIndexNamePrefix("a")
       .setOffset(100)
       .setLimit(10)
       .build();
 

Inheritance

Object > GetIndexesRequest

Static Methods

newBuilder()

public static final GetIndexesRequest.Builder newBuilder()
Returns
TypeDescription
GetIndexesRequest.Builder

newBuilder(GetIndexesRequest request)

public static final GetIndexesRequest.Builder newBuilder(GetIndexesRequest request)
Parameter
NameDescription
requestGetIndexesRequest
Returns
TypeDescription
GetIndexesRequest.Builder

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getIndexNamePrefix()

public String getIndexNamePrefix()
Returns
TypeDescription
String

the prefix matching names of all returned indexes

getLimit()

public Integer getLimit()
Returns
TypeDescription
Integer

the maximum number of indexes returned by this request

getNamespace()

public String getNamespace()
Returns
TypeDescription
String

the namespace for this request, or null for the default namespace.

getOffset()

public Integer getOffset()
Returns
TypeDescription
Integer

the offset of the first returned index

getStartIndexName()

public String getStartIndexName()
Returns
TypeDescription
String

the name of the first index to be returned

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

isAllNamespaces()

public Boolean isAllNamespaces()
Returns
TypeDescription
Boolean

whether or not to return indexes across all namespaces

isIncludeStartIndex()

public boolean isIncludeStartIndex()
Returns
TypeDescription
boolean

whether or not the index with the start index name is returned

isSchemaFetched()

public Boolean isSchemaFetched()
Returns
TypeDescription
Boolean

whether or not index schema is returned with each index

toString()

public String toString()
Returns
TypeDescription
String
Overrides