V
- The typepublic abstract class NoSQLBaseEntryProcessor<V> extends java.lang.Object implements NoSQLEntryProcessor
NoSQLEntryProcessor
Modifier and Type | Field and Description |
---|---|
protected NoSQLConfiguration |
kvConfiguration |
Constructor and Description |
---|
NoSQLBaseEntryProcessor() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getRecordFieldName(oracle.kv.KeyValueVersion entry) |
protected abstract V |
getRecordFieldValue(oracle.kv.KeyValueVersion entry) |
void |
init(NoSQLConfiguration kvConf)
Initializes the current processor using the given
NoSQLConfiguration |
void |
processEntry(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue, NoSQLContext kvContext)
Sets information from the given NoSQL entry to the passed outKey and outValue
|
protected void |
setKeyAndId(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue) |
protected void |
setOutKey(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue) |
protected void |
setOutValueId(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue) |
protected abstract void |
setRecordField(RecordInfo record, java.lang.String fieldName, V fieldValue) |
protected NoSQLConfiguration kvConfiguration
public void init(NoSQLConfiguration kvConf)
NoSQLEntryProcessor
NoSQLConfiguration
init
in interface NoSQLEntryProcessor
public void processEntry(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue, NoSQLContext kvContext)
NoSQLEntryProcessor
processEntry
in interface NoSQLEntryProcessor
entry
- a NoSQL entryoutKey
- the current mapper record keyoutValue
- the current mapper record valuekvContext
- the current NoSQLContext
protected void setKeyAndId(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue)
protected void setOutKey(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue)
protected void setOutValueId(oracle.kv.KeyValueVersion entry, org.apache.hadoop.io.Text outKey, RecordInfo outValue)
protected java.lang.String getRecordFieldName(oracle.kv.KeyValueVersion entry)
protected abstract V getRecordFieldValue(oracle.kv.KeyValueVersion entry)
protected abstract void setRecordField(RecordInfo record, java.lang.String fieldName, V fieldValue)
Copyright © 2016 Oracle and/or its affiliates. All Rights Reserved.