public class BinaryField extends FieldType
FieldType.DefaultAnalyzer
analyzer, args, falseProperties, log, POLY_FIELD_SEPARATOR, queryAnalyzer, trueProperties, typeName
BINARY, INDEXED, MULTIVALUED, OMIT_NORMS, OMIT_POSITIONS, OMIT_TF_POSITIONS, REQUIRED, SORT_MISSING_FIRST, SORT_MISSING_LAST, STORE_TERMOFFSETS, STORE_TERMPOSITIONS, STORE_TERMVECTORS, STORED, TOKENIZED
Constructor and Description |
---|
BinaryField() |
Modifier and Type | Method and Description |
---|---|
Field |
createField(SchemaField field,
Object val,
float boost) |
SortField |
getSortField(SchemaField field,
boolean top)
Returns the SortField instance that should be used to sort fields
of this type.
|
String |
toExternal(Fieldable f)
Convert the stored-field format to an external (string, human readable)
value
|
ByteBuffer |
toObject(Fieldable f)
Convert the stored-field format to an external object.
|
void |
write(TextResponseWriter writer,
String name,
Fieldable f)
calls back to TextResponseWriter to write the field value
|
void |
write(XMLWriter xmlWriter,
String name,
Fieldable f)
Renders the specified field as XML
|
createField, createField, createFields, getAnalyzer, getArg, getFieldIndex, getFieldQuery, getFieldStore, getFieldTermVec, getIndexOptions, getQueryAnalyzer, getRangeQuery, getStringSort, getTypeName, getValueSource, getValueSource, hasProperty, indexedToReadable, init, isMultiValued, isPolyField, isTokenized, multiValuedFieldCache, readableToIndexed, restrictProps, setAnalyzer, setQueryAnalyzer, storedToIndexed, storedToReadable, toInternal, toString
public void write(XMLWriter xmlWriter, String name, Fieldable f) throws IOException
FieldType
write
in class FieldType
IOException
public void write(TextResponseWriter writer, String name, Fieldable f) throws IOException
FieldType
write
in class FieldType
IOException
public SortField getSortField(SchemaField field, boolean top)
FieldType
getSortField
in class FieldType
SchemaField.checkSortability()
public String toExternal(Fieldable f)
FieldType
toExternal
in class FieldType
FieldType.toInternal(java.lang.String)
public ByteBuffer toObject(Fieldable f)
FieldType
toObject
in class FieldType
FieldType.toInternal(java.lang.String)
public Field createField(SchemaField field, Object val, float boost)