public class YokozunaIndex extends Object
Constructor and Description |
---|
YokozunaIndex(String name)
Constructs a Yokozuna index without naming the schema.
|
YokozunaIndex(String name,
String schema)
Constructs a Yokozuna index.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of this index as a UTF-8.
|
Integer |
getNVal()
Get the nVal.
|
String |
getSchema()
Returns the schema name for this index.
|
boolean |
hasNVal()
Determine if an nVal value has been set.
|
YokozunaIndex |
withNVal(int nVal)
Set the nVal.
|
public YokozunaIndex(String name)
name
- The name for this index.public YokozunaIndex(String name, String schema)
name
- The name of the index.schema
- The name of a schemapublic YokozunaIndex withNVal(int nVal)
nVal
- the number of replicas.public String getName()
public String getSchema()
public boolean hasNVal()
public Integer getNVal()
Copyright © 2016. All rights reserved.