lux.index.field
Class TinyBinaryField

java.lang.Object
  extended by lux.index.field.FieldDefinition
      extended by lux.index.field.TinyBinaryField
Direct Known Subclasses:
TinyBinarySolrField

public class TinyBinaryField
extends FieldDefinition

A field that stores XML documents in a binary form (TinyBinary) that is very close to the in-memory Saxon TinyTree format. Reading and writing these documents avoids the cost of parsing and serialization, and they take up only slightly more space than the serialized XML form.


Nested Class Summary
 
Nested classes/interfaces inherited from class lux.index.field.FieldDefinition
FieldDefinition.Type
 
Field Summary
static Charset UTF8
           
 
Constructor Summary
protected TinyBinaryField()
           
 
Method Summary
static TinyBinaryField getInstance()
           
 Iterable<?> getValues(XmlIndexer indexer)
          The Solr XmlUpdateProcessor calls this.
protected  TinyBinary makeTinyBinary(XmlIndexer indexer)
           
 
Methods inherited from class lux.index.field.FieldDefinition
getAnalyzer, getDefaultName, getFieldValues, getSolrFieldProperties, getType, isRenameable, isSingleValued, isStored, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UTF8

public static final Charset UTF8
Constructor Detail

TinyBinaryField

protected TinyBinaryField()
Method Detail

getInstance

public static TinyBinaryField getInstance()

makeTinyBinary

protected TinyBinary makeTinyBinary(XmlIndexer indexer)

getValues

public Iterable<?> getValues(XmlIndexer indexer)
Description copied from class: FieldDefinition
The Solr XmlUpdateProcessor calls this. If it returns null, the caller should use the values from getFieldValues() instead.

Overrides:
getValues in class FieldDefinition
Parameters:
indexer - the indexer that holds the field values
Returns:
the accumulated values of the field, as primitive objects (String or Integer). If


Copyright © 2013. All Rights Reserved.