@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); currentV = null; }
/** * Apply the configured iterators from the configuration to the scanner. * * @param context * the Hadoop context for the configured job * @param scanner * the scanner to configure * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner) { // tableName is given as null as it will be ignored in eventual call to #contextIterators setupIterators(context, scanner, null, null); }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); try { conf = new AccumuloGraphConfiguration(); conf.setZooKeeperHosts(VertexInputFormat.getInstance(attempt).getZooKeepers()); conf.setInstanceName(VertexInputFormat.getInstance(attempt).getInstanceName()); conf.setUser(VertexInputFormat.getPrincipal(attempt)); conf.setTokenWithFallback(VertexInputFormat.getToken(attempt)); conf.setGraphName(attempt.getConfiguration().get(GRAPH_NAME)); if (VertexInputFormat.getInstance(attempt) instanceof MockInstance) { conf.setInstanceType(InstanceType.Mock); } parent = AccumuloGraph.open(conf.getConfiguration()); } catch (AccumuloException e) { throw new AccumuloGraphException(e); } }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); try { conf = new AccumuloGraphConfiguration(); conf.setZooKeeperHosts(VertexInputFormat.getInstance(attempt).getZooKeepers()); conf.setInstanceName(VertexInputFormat.getInstance(attempt).getInstanceName()); conf.setUser(VertexInputFormat.getPrincipal(attempt)); conf.setPassword(VertexInputFormat.getToken(attempt)); conf.setGraphName(attempt.getConfiguration().get(GRAPH_NAME)); if (VertexInputFormat.getInstance(attempt) instanceof MockInstance) { conf.setInstanceType(InstanceType.Mock); } parent = AccumuloGraph.open(conf.getConfiguration()); } catch (AccumuloException e) { throw new AccumuloGraphException(e); } }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); try { conf = new AccumuloGraphConfiguration(); conf.setZooKeeperHosts(EdgeInputFormat.getInstance(attempt).getZooKeepers()); conf.setInstanceName(EdgeInputFormat.getInstance(attempt).getInstanceName()); conf.setUser(EdgeInputFormat.getPrincipal(attempt)); conf.setPassword(EdgeInputFormat.getToken(attempt)); conf.setGraphName(attempt.getConfiguration().get(GRAPH_NAME)); if (EdgeInputFormat.getInstance(attempt) instanceof MockInstance) { conf.setInstanceType(InstanceType.Mock); } parent = AccumuloGraph.open(conf.getConfiguration()); } catch (AccumuloException e) { throw new AccumuloGraphException(e); } }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); try { conf = new AccumuloGraphConfiguration(); conf.setZooKeeperHosts(EdgeInputFormat.getInstance(attempt).getZooKeepers()); conf.setInstanceName(EdgeInputFormat.getInstance(attempt).getInstanceName()); conf.setUser(EdgeInputFormat.getPrincipal(attempt)); conf.setTokenWithFallback(EdgeInputFormat.getToken(attempt)); conf.setGraphName(attempt.getConfiguration().get(GRAPH_NAME)); if (EdgeInputFormat.getInstance(attempt) instanceof MockInstance) { conf.setInstanceType(InstanceType.Mock); } parent = AccumuloGraph.open(conf.getConfiguration()); } catch (AccumuloException e) { throw new AccumuloGraphException(e); } }
/** * Apply the configured iterators from the configuration to the scanner. * * @param context * the Hadoop context for the configured job * @param scanner * the scanner to configure * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner) { // tableName is given as null as it will be ignored in eventual call to #contextIterators setupIterators(context, scanner, null, null); }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); peekingScannerIterator = new PeekingIterator<Entry<Key,Value>>(scannerIterator); currentK = new ArrayList<Entry<Key,Value>>(); currentV = new ChunkInputStream(); }
/** * Initialize a scanner over the given input split using this task attempt configuration. * * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner, org.apache.accumulo.core.client.mapreduce.RangeInputSplit split) { setupIterators(context, scanner, null, split); } }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); currentV = null; }
@Override public void initialize(InputSplit inSplit, TaskAttemptContext attempt) throws IOException { super.initialize(inSplit, attempt); rowIterator = new RowIterator(scannerIterator); currentK = new Text(); currentV = null; }
/** * Initialize a scanner over the given input split using this task attempt configuration. * * @deprecated since 1.7.0; Use {@link #contextIterators} instead. */ @Deprecated protected void setupIterators(TaskAttemptContext context, Scanner scanner, org.apache.accumulo.core.client.mapreduce.RangeInputSplit split) { setupIterators(context, scanner, null, split); } }