public class BinaryField extends FieldType
FieldType.DefaultAnalyzer
analyzer, args, falseProperties, log, POLY_FIELD_SEPARATOR, properties, queryAnalyzer, trueProperties, typeName
BINARY, 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, toString
getPropertyName, off, on, parseProperties, propertiesToString, propertyNameToInt
public void write(XMLWriter xmlWriter, java.lang.String name, org.apache.lucene.document.Fieldable f) throws java.io.IOException
FieldType
private 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
FieldType
public org.apache.lucene.search.SortField getSortField(SchemaField field, boolean top)
FieldType
getSortField
in class FieldType
SchemaField.checkSortability()
public java.lang.String toExternal(org.apache.lucene.document.Fieldable f)
FieldType
toExternal
in class FieldType
FieldType.toInternal(java.lang.String)
public java.nio.ByteBuffer toObject(org.apache.lucene.document.Fieldable f)
FieldType
toObject
in class FieldType
FieldType.toInternal(java.lang.String)
public org.apache.lucene.document.Field createField(SchemaField field, java.lang.Object val, float boost)