public abstract class ValueExtractor
extends java.lang.Object
ValueExtractors class has concrete implementations
of this abstract class for all the value vector type and mode combinations.| Modifier and Type | Field and Description |
|---|---|
protected org.ojai.FieldPath |
fieldPath |
int |
valueCount |
| Constructor and Description |
|---|
ValueExtractor(java.lang.String fieldName,
int valueCount)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
extract(com.mapr.db.rowcol.DBDocumentImpl doc,
int iRow)
Extract the specified value from the ValueVector, and add it to
the document with the fieldName specified at construction time.
|
protected final org.ojai.FieldPath fieldPath
public final int valueCount
public ValueExtractor(java.lang.String fieldName,
int valueCount)
fieldName - the name of the fieldvalueCount - the number of values the ValueVector haspublic abstract void extract(com.mapr.db.rowcol.DBDocumentImpl doc,
int iRow)
doc - the document to add the field-value pair toiRow - the index into the value vector; note this has already been
checked against valueCount, so there's no need to check it
here.