public class DocumentDatabase extends Object
Modifier and Type | Field and Description |
---|---|
private DocsumDefinitionSet |
docsumDefSet |
static String |
MATCH_PROPERTY |
private String |
name |
private com.google.common.collect.ImmutableMap<String,RankProfile> |
rankProfiles |
static String |
SEARCH_DOC_TYPE_KEY |
Constructor and Description |
---|
DocumentDatabase(DocumentdbInfoConfig.Documentdb documentDb,
LegacyEmulationConfig emulConfig) |
DocumentDatabase(String name,
DocsumDefinitionSet docsumDefinitionSet,
Collection<RankProfile> rankProfiles) |
Modifier and Type | Method and Description |
---|---|
DocsumDefinitionSet |
getDocsumDefinitionSet() |
String |
getName() |
Map<String,RankProfile> |
rankProfiles()
Returns an unmodifiable map of all the rank profiles in this indexed by rank profile name
|
private static com.google.common.collect.ImmutableMap<String,RankProfile> |
toMap(Collection<RankProfile> rankProfiles) |
private static Collection<RankProfile> |
toRankProfiles(Collection<DocumentdbInfoConfig.Documentdb.Rankprofile> rankProfileConfigList) |
public static final String MATCH_PROPERTY
public static final String SEARCH_DOC_TYPE_KEY
private final String name
private final DocsumDefinitionSet docsumDefSet
private final com.google.common.collect.ImmutableMap<String,RankProfile> rankProfiles
public DocumentDatabase(DocumentdbInfoConfig.Documentdb documentDb, LegacyEmulationConfig emulConfig)
public DocumentDatabase(String name, DocsumDefinitionSet docsumDefinitionSet, Collection<RankProfile> rankProfiles)
public String getName()
public DocsumDefinitionSet getDocsumDefinitionSet()
public Map<String,RankProfile> rankProfiles()
private static com.google.common.collect.ImmutableMap<String,RankProfile> toMap(Collection<RankProfile> rankProfiles)
private static Collection<RankProfile> toRankProfiles(Collection<DocumentdbInfoConfig.Documentdb.Rankprofile> rankProfileConfigList)
Copyright © 2018. All rights reserved.