|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.analysis.FieldTypeDefinition
public abstract class FieldTypeDefinition
Constructor Summary | |
---|---|
FieldTypeDefinition()
|
Method Summary | |
---|---|
abstract boolean |
checkSupportForCustomQuery()
|
abstract boolean |
checkSupportForFuzzyQuery()
|
abstract boolean |
checkSupportForPrefixQuery()
|
abstract boolean |
checkSupportForRegexQuery()
|
abstract boolean |
checkSupportForSorting()
|
abstract boolean |
checkSupportForWildcardQuery()
|
abstract void |
configure(String fieldNameForThisInstance,
Map<String,String> properties,
org.apache.hadoop.conf.Configuration configuration)
Configures the field type. |
Collection<String> |
getAlternateFieldNames()
Gets the alternate field names for this instance. |
abstract org.apache.lucene.analysis.Analyzer |
getAnalyzerForIndex(String fieldName)
Gets the Analyzer for indexing this should be the same for the
querying unless you have a good reason. |
abstract org.apache.lucene.analysis.Analyzer |
getAnalyzerForQuery(String fieldName)
Gets the Analyzer for querying this should be the same for the
indexing unless you have a good reason. |
String |
getColumnName()
|
org.apache.lucene.search.Query |
getCustomQuery(String text)
|
String |
getFamily()
|
abstract Iterable<? extends org.apache.lucene.document.Field> |
getFieldsForColumn(String family,
Column column)
Gets the Field s for indexing from a single Column. |
abstract Iterable<? extends org.apache.lucene.document.Field> |
getFieldsForSubColumn(String family,
Column column,
String subName)
Gets the Field s for indexing from a single Column, but should not
be stored because the original value should be stored in the main
Column . |
String |
getFieldType()
|
abstract String |
getName()
Gets the name of the field type. |
Map<String,String> |
getProperties()
|
abstract org.apache.lucene.search.SortField |
getSortField(boolean reverse)
|
String |
getSubColumnName()
|
boolean |
isFieldLessIndexed()
|
abstract boolean |
isNumeric()
|
boolean |
isSortEnable()
|
void |
setColumnName(String columnName)
|
void |
setFamily(String family)
|
void |
setFieldLessIndexed(boolean fieldLessIndexed)
|
void |
setFieldType(String fieldType)
|
void |
setProperties(Map<String,String> properties)
|
void |
setSortEnable(boolean sortEnable)
|
void |
setSubColumnName(String subColumnName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldTypeDefinition()
Method Detail |
---|
public abstract String getName()
public Collection<String> getAlternateFieldNames()
Iterable
of String
s.public abstract void configure(String fieldNameForThisInstance, Map<String,String> properties, org.apache.hadoop.conf.Configuration configuration)
properties
- the properties.public abstract Iterable<? extends org.apache.lucene.document.Field> getFieldsForColumn(String family, Column column)
Field
s for indexing from a single Column.
column
- the Column
Iterable
of fields.public abstract Iterable<? extends org.apache.lucene.document.Field> getFieldsForSubColumn(String family, Column column, String subName)
Field
s for indexing from a single Column, but should not
be stored because the original value should be stored in the main
Column
.
column
- the Column
Iterable
of fields.public abstract org.apache.lucene.analysis.Analyzer getAnalyzerForIndex(String fieldName)
Analyzer
for indexing this should be the same for the
querying unless you have a good reason.
fieldName
- the field name to get the analyzer, this could be the base field
name or the alternative.
Analyzer
.public abstract org.apache.lucene.analysis.Analyzer getAnalyzerForQuery(String fieldName)
Analyzer
for querying this should be the same for the
indexing unless you have a good reason.
fieldName
- the field name to get the analyzer, this could be the base field
name or the alternative.
Analyzer
.public boolean isFieldLessIndexed()
public void setFieldLessIndexed(boolean fieldLessIndexed)
public abstract boolean checkSupportForFuzzyQuery()
public abstract boolean checkSupportForWildcardQuery()
public abstract boolean checkSupportForPrefixQuery()
public abstract boolean checkSupportForRegexQuery()
public abstract boolean isNumeric()
public abstract boolean checkSupportForCustomQuery()
public abstract boolean checkSupportForSorting()
public boolean isSortEnable()
public void setSortEnable(boolean sortEnable)
public org.apache.lucene.search.Query getCustomQuery(String text)
public String getFamily()
public void setFamily(String family)
public String getColumnName()
public void setColumnName(String columnName)
public String getSubColumnName()
public void setSubColumnName(String subColumnName)
public String getFieldType()
public void setFieldType(String fieldType)
public Map<String,String> getProperties()
public void setProperties(Map<String,String> properties)
public abstract org.apache.lucene.search.SortField getSortField(boolean reverse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |