@Override protected Text getDocID(Key key) { return parseDocID(key); }
/** * A convenience method for setting the index column family and document column family prefix. * * @param is * IteratorSetting object to configure. * @param indexColf * the index column family * @param docColfPrefix * the prefix of the document column family (colf will be of the form * docColfPrefix\0doctype) */ public static void setColfs(IteratorSetting is, String indexColf, String docColfPrefix) { setIndexColf(is, indexColf); setDocColfPrefix(is, docColfPrefix); } }
@Override protected void advanceToIntersection() throws IOException { super.advanceToIntersection(); if (topKey == null) return; if (log.isTraceEnabled()) log.trace("using top key to seek for doc: {}", topKey); Key docKey = buildDocKey(); docSource.seek(new Range(docKey, true, null, false), docColfSet, true); log.debug("got doc key: {}", docSource.getTopKey()); if (docSource.hasTop() && docKey.equals(docSource.getTopKey(), PartialKey.ROW_COLFAM_COLQUAL)) { value = docSource.getTopValue(); } log.debug("got doc value: {}", value); }
@Override protected void advanceToIntersection() throws IOException { super.advanceToIntersection(); if (topKey == null) return; if (log.isTraceEnabled()) log.trace("using top key to seek for doc: " + topKey.toString()); Key docKey = buildDocKey(); docSource.seek(new Range(docKey, true, null, false), docColfSet, true); log.debug("got doc key: " + docSource.getTopKey().toString()); if (docSource.hasTop() && docKey.equals(docSource.getTopKey(), PartialKey.ROW_COLFAM_COLQUAL)) { value = docSource.getTopValue(); } log.debug("got doc value: " + value.toString()); }
/** * A convenience method for setting the index column family and document column family prefix. * * @param is * IteratorSetting object to configure. * @param indexColf * the index column family * @param docColfPrefix * the prefix of the document column family (colf will be of the form * docColfPrefix\0doctype) */ public static void setColfs(IteratorSetting is, String indexColf, String docColfPrefix) { setIndexColf(is, indexColf); setDocColfPrefix(is, docColfPrefix); } }
@Override protected Text getDocID(Key key) { return parseDocID(key); }