|
||||||||||
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.CustomFieldTypeDefinition
org.apache.blur.analysis.type.ExampleType
public class ExampleType
Constructor Summary | |
---|---|
ExampleType()
|
Method Summary | |
---|---|
void |
configure(String fieldNameForThisInstance,
Map<String,String> properties,
org.apache.hadoop.conf.Configuration configuration)
Configures this instance for the type. |
org.apache.lucene.search.Query |
getCustomQuery(String text)
Gets the query from the text provided by the query parser. |
Iterable<? extends org.apache.lucene.document.Field> |
getFieldsForColumn(String family,
Column column)
Create Field s for the index as well as for storing the original
data for retrieval. |
Iterable<? extends org.apache.lucene.document.Field> |
getFieldsForSubColumn(String family,
Column column,
String subName)
Create Field s for the index do NOT store the data because the is a
sub column. |
String |
getName()
Get the name of the type. |
org.apache.lucene.search.SortField |
getSortField(boolean reverse)
|
Methods inherited from class org.apache.blur.analysis.type.CustomFieldTypeDefinition |
---|
checkSupportForCustomQuery, checkSupportForFuzzyQuery, checkSupportForPrefixQuery, checkSupportForRegexQuery, checkSupportForSorting, checkSupportForWildcardQuery, getAnalyzerForIndex, getAnalyzerForQuery, isNumeric |
Methods inherited from class org.apache.blur.analysis.FieldTypeDefinition |
---|
getAlternateFieldNames, getColumnName, 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 |
Constructor Detail |
---|
public ExampleType()
Method Detail |
---|
public String getName()
getName
in class FieldTypeDefinition
public void configure(String fieldNameForThisInstance, Map<String,String> properties, org.apache.hadoop.conf.Configuration configuration)
configure
in class FieldTypeDefinition
fieldNameForThisInstance
- the field name for this instance.properties
- the properties passed into this type definition from the
Blur.Iface#addColumnDefinition(String, org.apache.blur.thrift.generated.ColumnDefinition)
method.public Iterable<? extends org.apache.lucene.document.Field> getFieldsForColumn(String family, Column column)
Field
s for the index as well as for storing the original
data for retrieval.
getFieldsForColumn
in class FieldTypeDefinition
family
- the family name.column
- the column that holds the name and value.
Iterable
of Field
s.public Iterable<? extends org.apache.lucene.document.Field> getFieldsForSubColumn(String family, Column column, String subName)
Field
s for the index do NOT store the data because the is a
sub column.
getFieldsForSubColumn
in class FieldTypeDefinition
family
- the family name.column
- the column that holds the name and value.subName
- the sub column name.
Iterable
of Field
s.public org.apache.lucene.search.Query getCustomQuery(String text)
getCustomQuery
in class FieldTypeDefinition
text
- the text provided by the query parser.
Query
.public org.apache.lucene.search.SortField getSortField(boolean reverse)
getSortField
in class CustomFieldTypeDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |