public class Index extends Builder
| Constructor and Description |
|---|
Index(String table,
String column)
Builds a new
Index creation statement for the specified table and column. |
| Modifier and Type | Method and Description |
|---|---|
Index |
analyzer(String name,
Analyzer analyzer)
Adds a new
Analyzer. |
String |
build()
Returns the JSON representation of this
Builder. |
Index |
defaultAnalyzer(String name)
Sets the name of the default
Analyzer. |
Index |
directoryPath(String directoryPath)
Sets the path of the Lucene directory files.
|
Index |
excludedDataCenters(String excludedDataCenters)
Sets the list of excluded data centers.
|
Index |
indexingQueuesSize(Integer indexingQueuesSize)
Sets the max number of queued documents per asynchronous indexing thread.
|
Index |
indexingThreads(Integer indexingThreads)
Sets the number of asynchronous indexing threads, where
0 means synchronous indexing. |
Index |
keyspace(String keyspace)
Sets the name keyspace name.
|
Index |
mapper(String field,
Mapper mapper)
Adds a new
Mapper. |
Index |
maxCachedMb(Integer maxCachedMb)
Sets the Lucene's max cached MBs.
|
Index |
maxMergeMb(Integer maxMergeMb)
Sets the Lucene's max merge MBs.
|
Index |
name(String name)
Sets the name of the indexed column.
|
Index |
ramBufferMb(Integer ramBufferMb)
Sets the Lucene's RAM buffer size in MBs.
|
Index |
refreshSeconds(Number refreshSeconds)
Sets the index searcher refresh period.
|
Index |
schema(Schema schema)
Sets the
Schema. |
all, bigDecimalMapper, bigIntegerMapper, bitemporal, bitemporalMapper, blobMapper, bool, booleanMapper, classpathAnalyzer, contains, dateMapper, dateRange, dateRangeMapper, doubleMapper, field, floatMapper, fuzzy, geoBBox, geoDistance, geoDistanceSortField, geoPointMapper, index, index, inetMapper, integerMapper, longMapper, lucene, match, none, phrase, prefix, range, regexp, schema, search, snowballAnalyzer, stringMapper, textMapper, toString, uuidMapper, wildcardpublic Index keyspace(String keyspace)
keyspace - The keyspace name.public Index name(String name)
name - The name of the indexed column.public Index refreshSeconds(Number refreshSeconds)
refreshSeconds - The refresh seconds.public Index directoryPath(String directoryPath)
directoryPath - The path of the Lucene directory files.public Index ramBufferMb(Integer ramBufferMb)
ramBufferMb - The Lucene's RAM buffer size in MBs.public Index maxMergeMb(Integer maxMergeMb)
maxMergeMb - The Lucene's max merge MBs.public Index maxCachedMb(Integer maxCachedMb)
maxCachedMb - The Lucene's max cached MBs.public Index indexingThreads(Integer indexingThreads)
0 means synchronous indexing.indexingThreads - The number of asynchronous indexing threads.public Index indexingQueuesSize(Integer indexingQueuesSize)
indexingQueuesSize - The max number of queued documents per asynchronous indexing thread.public Index excludedDataCenters(String excludedDataCenters)
excludedDataCenters - The list of excluded data centers.public Index defaultAnalyzer(String name)
Analyzer.name - The name of the default Analyzer.public Index schema(Schema schema)
Schema.schema - A Schema.Copyright © 2016. All rights reserved.