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