System.out.println("Starting meta prefetch for table " + table); client.prefetchMeta(table).join(joinTimeout); if (debug) { System.out.println("Completed meta prefetch for table " + table);
/** * Eagerly prefetches and caches a table's region metadata from HBase. * @param table The name of the table whose metadata you intend to prefetch. * @return A deferred object that indicates the completion of the request. * The {@link Object} has no special meaning and can be {@code null} * (think of it as {@code Deferred<Void>}). But you probably want to attach * at least an errback to this {@code Deferred} to handle failures. * @since 1.5 */ public Deferred<Object> prefetchMeta(final byte[] table) { return prefetchMeta(table, EMPTY_ARRAY, EMPTY_ARRAY); }
/** * Eagerly prefetches and caches a table's region metadata from HBase. * @param table The name of the table whose metadata you intend to prefetch. * @return A deferred object that indicates the completion of the request. * The {@link Object} has no special meaning and can be {@code null} * (think of it as {@code Deferred<Void>}). But you probably want to attach * at least an errback to this {@code Deferred} to handle failures. * @since 1.5 */ public Deferred<Object> prefetchMeta(final String table) { return prefetchMeta(table.getBytes(), EMPTY_ARRAY, EMPTY_ARRAY); }
/** * Eagerly prefetches and caches part of a table's region metadata from HBase. * <p> * The part to prefetch is identified by a row key range, given by * {@code start} and {@code stop}. * @param table The name of the table whose metadata you intend to prefetch. * @param start The start of the row key range to prefetch metadata for. * @param stop The end of the row key range to prefetch metadata for. * @return A deferred object that indicates the completion of the request. * The {@link Object} has no special meaning and can be {@code null} * (think of it as {@code Deferred<Void>}). But you probably want to attach * at least an errback to this {@code Deferred} to handle failures. * @since 1.5 */ public Deferred<Object> prefetchMeta(final String table, final String start, final String stop) { return prefetchMeta(table.getBytes(), start.getBytes(), stop.getBytes()); }