setupIterators(attempt, scanner, split.getTableName(), split); if (classLoaderContext != null) { scanner.setClassLoaderContext(classLoaderContext); setupIterators(attempt, scanner, split.getTableName(), split); } catch (Exception e) { throw new IOException(e);
setupIterators(attempt, scanner, split.getTableName(), split); if (null != classLoaderContext) { scanner.setClassLoaderContext(classLoaderContext); setupIterators(attempt, scanner, split.getTableName(), split); } catch (Exception e) { throw new IOException(e);
scanner = instance.getConnector(principal, token).createBatchScanner(split.getTableName(), authorizations, scanThreads); setupIterators(attempt, scanner, split.getTableName(), split); if (null != classLoaderContext) { scanner.setClassLoaderContext(classLoaderContext); setupIterators(attempt, scanner, split.getTableName(), split); } catch (Exception e) { throw new IOException(e);
/** * Configures the iterators on a scanner for the given table name. Will attempt to use * configuration from the InputSplit, on failure will try to extract them from * TaskAttemptContext. * * @param context * the Hadoop context for the configured job * @param tableName * the table name for which the scanner is configured * @param scanner * the scanner for which to configure the iterators * @param split * InputSplit containing configurations * @since 1.7.0 */ private void setupIterators(TaskAttemptContext context, ScannerBase scanner, String tableName, RangeInputSplit split) { List<IteratorSetting> iterators = null; if (null == split) { iterators = contextIterators(context, tableName); } else { iterators = split.getIterators(); if (null == iterators) { iterators = contextIterators(context, tableName); } } for (IteratorSetting iterator : iterators) scanner.addScanIterator(iterator); }
/** * Configures the iterators on a scanner for the given table name. Will attempt to use * configuration from the InputSplit, on failure will try to extract them from * TaskAttemptContext. * * @param context * the Hadoop context for the configured job * @param tableName * the table name for which the scanner is configured * @param scanner * the scanner for which to configure the iterators * @param split * InputSplit containing configurations * @since 1.7.0 */ private void setupIterators(TaskAttemptContext context, ScannerBase scanner, String tableName, RangeInputSplit split) { List<IteratorSetting> iterators = null; if (null == split) { iterators = contextIterators(context, tableName); } else { iterators = split.getIterators(); if (null == iterators) { iterators = contextIterators(context, tableName); } } for (IteratorSetting iterator : iterators) scanner.addScanIterator(iterator); }
/** * Initializes the RecordReader. * * @param inSplit * Defines the portion of data to read. * @param attempt * Context for this task attempt. * @throws IOException * if thrown by the superclass's initialize method. */ @Override public void initialize(final InputSplit inSplit, final TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = MRUtils.getTableLayout( attempt.getConfiguration(), TABLE_LAYOUT.SPO); // TODO verify that this is correct this.ryaContext = RyaTripleContext .getInstance(new AccumuloRdfConfiguration(attempt .getConfiguration())); }
/** * Initializes the RecordReader. * * @param inSplit * Defines the portion of data to read. * @param attempt * Context for this task attempt. * @throws IOException * if thrown by the superclass's initialize method. */ @Override public void initialize(final InputSplit inSplit, final TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = MRUtils.getTableLayout( attempt.getConfiguration(), TABLE_LAYOUT.SPO); // TODO verify that this is correct this.ryaContext = RyaTripleContext .getInstance(new AccumuloRdfConfiguration(attempt .getConfiguration())); }
/** * Initializes the RecordReader. * * @param inSplit * Defines the portion of data to read. * @param attempt * Context for this task attempt. * @throws IOException * if thrown by the superclass's initialize method. */ @Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); }
/** * Configures the iterators on a scanner for the given table name. * * @param context * the Hadoop context for the configured job * @param scanner * the scanner for which to configure the iterators * @param tableName * the table name for which the scanner is configured * @since 1.6.0 * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner, String tableName, RangeInputSplit split) { setupIterators(context, (ScannerBase) scanner, tableName, split); }
/** * Initializes the RecordReader. * * @param inSplit * Defines the portion of data to read. * @param attempt * Context for this task attempt. * @throws IOException * if thrown by the superclass's initialize method. */ @Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); }
/** * Initializes the RecordReader. * @param inSplit Defines the portion of data to read. * @param attempt Context for this task attempt. * @throws IOException if thrown by the superclass's initialize method. */ @Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = MRUtils.getTableLayout(attempt.getConfiguration(), TABLE_LAYOUT.OSP); //TODO verify that this is correct this.ryaContext = RyaTripleContext.getInstance(new AccumuloRdfConfiguration(attempt.getConfiguration())); }
/** * Initializes the RecordReader. * @param inSplit Defines the portion of data to read. * @param attempt Context for this task attempt. * @throws IOException if thrown by the superclass's initialize method. */ @Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = MRUtils.getTableLayout(attempt.getConfiguration(), TABLE_LAYOUT.OSP); //TODO verify that this is correct this.ryaContext = RyaTripleContext.getInstance(new AccumuloRdfConfiguration(attempt.getConfiguration())); }
/** * Initializes the RecordReader. * @param inSplit Defines the portion of data to read. * @param attempt Context for this task attempt. * @throws IOException if thrown by the superclass's initialize method. */ public void initialize(InputSplit inSplit, TaskAttemptContext attempt, RyaTripleContext context, TABLE_LAYOUT tableLayout) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = tableLayout; //TODO verify that this is correct this.ryaContext = context; }
/** * Initializes the RecordReader. * @param inSplit Defines the portion of data to read. * @param attempt Context for this task attempt. * @throws IOException if thrown by the superclass's initialize method. */ public void initialize(InputSplit inSplit, TaskAttemptContext attempt, RyaTripleContext context, TABLE_LAYOUT tableLayout) throws IOException { super.initialize(inSplit, attempt); this.tableLayout = tableLayout; //TODO verify that this is correct this.ryaContext = context; }
/** * Configures the iterators on a scanner for the given table name. Will attempt to use * configuration from the InputSplit, on failure will try to extract them from * TaskAttemptContext. * * @param context * the Hadoop context for the configured job * @param tableName * the table name for which the scanner is configured * @param scanner * the scanner for which to configure the iterators * @param split * InputSplit containing configurations * @since 1.7.0 */ private void setupIterators(TaskAttemptContext context, ScannerBase scanner, String tableName, RangeInputSplit split) { List<IteratorSetting> iterators = null; if (split == null) { iterators = contextIterators(context, tableName); } else { iterators = split.getIterators(); if (iterators == null) { iterators = contextIterators(context, tableName); } } for (IteratorSetting iterator : iterators) scanner.addScanIterator(iterator); }
/** * Configures the iterators on a scanner for the given table name. * * @param context * the Hadoop context for the configured job * @param scanner * the scanner for which to configure the iterators * @param tableName * the table name for which the scanner is configured * @since 1.6.0 * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner, String tableName, RangeInputSplit split) { setupIterators(context, (ScannerBase) scanner, tableName, split); }