public class BinaryField extends FieldType
FieldType.DefaultAnalyzeranalyzer, args, falseProperties, log, POLY_FIELD_SEPARATOR, properties, queryAnalyzer, trueProperties, typeNameBINARY, INDEXED, MULTIVALUED, OMIT_NORMS, OMIT_POSITIONS, OMIT_TF_POSITIONS, propertyMap, propertyNames, 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 |
|---|---|
org.apache.lucene.document.Field |
createField(SchemaField field,
java.lang.Object val,
float boost) |
org.apache.lucene.search.SortField |
getSortField(SchemaField field,
boolean top)
Returns the SortField instance that should be used to sort fields
of this type.
|
private java.lang.String |
toBase64String(java.nio.ByteBuffer buf) |
java.lang.String |
toExternal(org.apache.lucene.document.Fieldable f)
Convert the stored-field format to an external (string, human readable)
value
|
java.nio.ByteBuffer |
toObject(org.apache.lucene.document.Fieldable f)
Convert the stored-field format to an external object.
|
void |
write(TextResponseWriter writer,
java.lang.String name,
org.apache.lucene.document.Fieldable f)
calls back to TextResponseWriter to write the field value
|
void |
write(XMLWriter xmlWriter,
java.lang.String name,
org.apache.lucene.document.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, setArgs, setQueryAnalyzer, setTypeName, storedToIndexed, storedToReadable, toInternal, toStringgetPropertyName, off, on, parseProperties, propertiesToString, propertyNameToIntpublic void write(XMLWriter xmlWriter, java.lang.String name, org.apache.lucene.document.Fieldable f) throws java.io.IOException
FieldTypeprivate java.lang.String toBase64String(java.nio.ByteBuffer buf)
public void write(TextResponseWriter writer, java.lang.String name, org.apache.lucene.document.Fieldable f) throws java.io.IOException
FieldTypepublic org.apache.lucene.search.SortField getSortField(SchemaField field, boolean top)
FieldTypegetSortField in class FieldTypeSchemaField.checkSortability()public java.lang.String toExternal(org.apache.lucene.document.Fieldable f)
FieldTypetoExternal in class FieldTypeFieldType.toInternal(java.lang.String)public java.nio.ByteBuffer toObject(org.apache.lucene.document.Fieldable f)
FieldTypetoObject in class FieldTypeFieldType.toInternal(java.lang.String)public org.apache.lucene.document.Field createField(SchemaField field, java.lang.Object val, float boost)