Class SearchIndex
- java.lang.Object
-
- com.couchbase.client.java.manager.SearchIndex
-
public class SearchIndex extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchIndex
from(String name, SearchIndex index)
Creates another index from the given one with its properties, but clears out all state like the UUID so it can be used to create a new one.static SearchIndex
fromJson(byte[] raw)
String
name()
byte[]
toJson()
String
toString()
Optional<String>
uuid()
-
-
-
Method Detail
-
from
public static SearchIndex from(String name, SearchIndex index)
Creates another index from the given one with its properties, but clears out all state like the UUID so it can be used to create a new one.- Parameters:
name
- the new name of the indexindex
- the original index to copy the properties over- Returns:
- a new index that can be used
-
fromJson
public static SearchIndex fromJson(byte[] raw)
-
toJson
public byte[] toJson()
-
name
public String name()
-
-