public class TextIndexStrategy<E> extends Object implements CustomIndexStrategy<E,TextConstraints>
CustomIndexStrategy.PersistableBiPredicate<E,C extends Persistable>
Constructor and Description |
---|
TextIndexStrategy() |
TextIndexStrategy(EnumSet<TextSearchType> supportedSearchTypes,
EnumSet<CaseSensitivity> supportedCaseSensitivity,
int nCharacterGrams,
TextIndexEntryConverter<E> converter) |
TextIndexStrategy(EnumSet<TextSearchType> supportedSearchTypes,
EnumSet<CaseSensitivity> caseSensitivity,
TextIndexEntryConverter<E> converter) |
TextIndexStrategy(TextIndexEntryConverter<E> converter) |
Modifier and Type | Method and Description |
---|---|
protected String |
entryToString(E entry) |
void |
fromBinary(byte[] bytes)
Convert a stream of binary bytes to fields and data within an object.
|
protected void |
fromBinary(ByteBuffer buf) |
Class<TextConstraints> |
getConstraintsClass() |
TextIndexEntryConverter<E> |
getEntryConverter() |
CustomIndexStrategy.PersistableBiPredicate<E,TextConstraints> |
getFilter(TextConstraints constraints)
Optionally a custom index strategy can enable additional filtering beyond just the query ranges
(termed "fine-grained" filtering in documentation).
|
InsertionIds |
getInsertionIds(E entry)
This is the function that is called on ingest to tell GeoWave how to index the entry within
this custom index - the insertion IDs are a set of partition and sort keys, either of which
could be empty or null as needed (with the understanding that each partition key represents a
unique partition in the backend datastore)
|
QueryRanges |
getQueryRanges(MultiDimensionalTextData textData) |
QueryRanges |
getQueryRanges(TextConstraints constraints)
This is the function that is called on query, when given a query with the constraints type.
|
boolean |
isSupported(CaseSensitivity caseSensitivity) |
boolean |
isSupported(TextSearchType searchType) |
byte[] |
toBinary()
Convert fields and data within an object to binary form for transmission or storage.
|
public TextIndexStrategy()
public TextIndexStrategy(TextIndexEntryConverter<E> converter)
public TextIndexStrategy(EnumSet<TextSearchType> supportedSearchTypes, EnumSet<CaseSensitivity> caseSensitivity, TextIndexEntryConverter<E> converter)
public TextIndexStrategy(EnumSet<TextSearchType> supportedSearchTypes, EnumSet<CaseSensitivity> supportedCaseSensitivity, int nCharacterGrams, TextIndexEntryConverter<E> converter)
public TextIndexEntryConverter<E> getEntryConverter()
public boolean isSupported(TextSearchType searchType)
public boolean isSupported(CaseSensitivity caseSensitivity)
public byte[] toBinary()
Persistable
toBinary
in interface Persistable
public void fromBinary(byte[] bytes)
Persistable
fromBinary
in interface Persistable
protected void fromBinary(ByteBuffer buf)
public InsertionIds getInsertionIds(E entry)
CustomIndexStrategy
getInsertionIds
in interface CustomIndexStrategy<E,TextConstraints>
entry
- the entry to be indexed on ingestpublic QueryRanges getQueryRanges(TextConstraints constraints)
CustomIndexStrategy
getQueryRanges
in interface CustomIndexStrategy<E,TextConstraints>
constraints
- the query constraintspublic QueryRanges getQueryRanges(MultiDimensionalTextData textData)
public CustomIndexStrategy.PersistableBiPredicate<E,TextConstraints> getFilter(TextConstraints constraints)
CustomIndexStrategy
getFilter
in interface CustomIndexStrategy<E,TextConstraints>
public Class<TextConstraints> getConstraintsClass()
getConstraintsClass
in interface CustomIndexStrategy<E,TextConstraints>
Copyright © 2013–2022. All rights reserved.