public Text evaluate(Text s, IntWritable pos) { return evaluate(s, pos, maxValue); }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos, IntWritable len) { if ((bw == null) || (pos == null) || (len == null)) { return null; } if ((len.get() <= 0)) { return new BytesWritable(); } int[] index = makeIndex(pos.get(), len.get(), bw.getLength()); if (index == null) { return new BytesWritable(); } return new BytesWritable(Arrays.copyOfRange(bw.getBytes(), index[0], index[1])); }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos){ return evaluate(bw, pos, maxValue); } }
public Text evaluate(Text t, IntWritable pos, IntWritable len) { if ((t == null) || (pos == null) || (len == null)) { return null; } r.clear(); if ((len.get() <= 0)) { return r; } String s = t.toString(); int[] index = makeIndex(pos.get(), len.get(), s.length()); if (index == null) { return r; } r.set(s.substring(index[0], index[1])); return r; }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos){ return evaluate(bw, pos, maxValue); } }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos, IntWritable len) { if ((bw == null) || (pos == null) || (len == null)) { return null; } if ((len.get() <= 0)) { return new BytesWritable(); } int[] index = makeIndex(pos.get(), len.get(), bw.getLength()); if (index == null) { return new BytesWritable(); } return new BytesWritable(Arrays.copyOfRange(bw.getBytes(), index[0], index[1])); }
public Text evaluate(Text s, IntWritable pos) { return evaluate(s, pos, maxValue); }
public Text evaluate(Text t, IntWritable pos, IntWritable len) { if ((t == null) || (pos == null) || (len == null)) { return null; } r.clear(); if ((len.get() <= 0)) { return r; } String s = t.toString(); int[] index = makeIndex(pos.get(), len.get(), s.length()); if (index == null) { return r; } r.set(s.substring(index[0], index[1])); return r; }
public Text evaluate(Text s, IntWritable pos) { return evaluate(s, pos, maxValue); }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos, IntWritable len) { if ((bw == null) || (pos == null) || (len == null)) { return null; } if ((len.get() <= 0)) { return new BytesWritable(); } int[] index = makeIndex(pos.get(), len.get(), bw.getLength()); if (index == null) { return new BytesWritable(); } return new BytesWritable(Arrays.copyOfRange(bw.getBytes(), index[0], index[1])); }
public BytesWritable evaluate(BytesWritable bw, IntWritable pos){ return evaluate(bw, pos, maxValue); } }
public Text evaluate(Text t, IntWritable pos, IntWritable len) { if ((t == null) || (pos == null) || (len == null)) { return null; } r.clear(); if ((len.get() <= 0)) { return r; } String s = t.toString(); int[] index = makeIndex(pos.get(), len.get(), s.length()); if (index == null) { return r; } r.set(s.substring(index[0], index[1])); return r; }
public Text evaluate(Text s, IntWritable pos) { return evaluate(s, pos, maxValue); }