@Documented @Retention(value=RUNTIME) @Target(value={FIELD,METHOD,ANNOTATION_TYPE}) public @interface SASI
SASI uses significantly using fewer memory, disk, and CPU resources. It enables querying with PREFIX and CONTAINS on strings, similar to the SQL implementation of LIKE = "foo*" or LIKE = "*foo*".
@Table
class Person {
@SASI(analyzed = true, indexMode = CONTAINS) @StandardAnalyzed("en") String names; // allows LIKE queries
@SASI int age // allows age >= … queries;
}
SASI indexing can apply an analyzer that is applied during indexing. Annotation-based indexing supports
standard analyzer and non-tokenizing analyzer.
SASI.StandardAnalyzed,
SASI.NonTokenizingAnalyzed| Modifier and Type | Optional Element and Description |
|---|---|
SASI.IndexMode |
indexMode
The name of the index.
|
String |
value
The name of the index.
|
public abstract String value
public abstract SASI.IndexMode indexMode
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.