/** {@inheritDoc} */ @Override public KeyValueStoreReader<K, V> open() throws IOException, InterruptedException { return new Reader<K, V>( new AvroRecordKeyValueArrayStore.Reader<K, V>( getConf(), getExpandedInputPaths(), mStore.getReaderSchema(), mStore.getKeyFieldName(), 1)); }
/** * Sets the field to use as the lookup key for the records. * * @param keyFieldName The key field. */ public void setKeyFieldName(String keyFieldName) { mStore.setKeyFieldName(keyFieldName); }
/** * Sets the reader schema to use for the avro container file records. * * @param readerSchema The reader schema. */ public void setReaderSchema(Schema readerSchema) { mStore.setReaderSchema(readerSchema); }
/** {@inheritDoc} */ @Override public void initFromConf(KeyValueStoreConfiguration conf) throws IOException { mStore.initFromConf(conf); }
/** {@inheritDoc} */ @Override public void storeToConf(KeyValueStoreConfiguration conf) throws IOException { mStore.storeToConf(conf, true); }