Class ValueInputFormat<VALUEIN>

  • Type Parameters:
    VALUEIN -
    All Implemented Interfaces:
    MarkLogicConstants

    public class ValueInputFormat<VALUEIN>
    extends MarkLogicInputFormat<org.apache.hadoop.io.LongWritable,​VALUEIN>
    implements MarkLogicConstants

    MarkLogicInputFormat for a value other than document or node with user specified key and connector-generated key.

    Use this class to get input data from a MarkLogic database and produce key-value pairs with value types such as Text and IntWritable through implicit conversions performed by the connector. For details on the supported conversions, see "Using KeyValueInputFormat and ValueInputFormat" in the Hadoop MapReduce Connector Developer's Guide.

    The LongWritable key created with this class is not intended to be a meaningful value. Use this class when only the content in the value is interesting. The key is simply the number of values seen at the time a key-value pair is generated.

    See Also:
    LinkCount
    • Constructor Detail

      • ValueInputFormat

        public ValueInputFormat()
    • Method Detail

      • createRecordReader

        public org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,​VALUEIN> createRecordReader​(org.apache.hadoop.mapreduce.InputSplit split,
                                                                                                                            org.apache.hadoop.mapreduce.TaskAttemptContext context)
                                                                                                                     throws IOException,
                                                                                                                            InterruptedException
        Specified by:
        createRecordReader in class org.apache.hadoop.mapreduce.InputFormat<org.apache.hadoop.io.LongWritable,​VALUEIN>
        Throws:
        IOException
        InterruptedException