本文整理了Java中org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader.findSeparator()
本文整理了Java中org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader.findSeparator()
方法的一些代码示例,展示了KeyValueLineRecordReader.findSeparator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。KeyValueLineRecordReader.findSeparator()
方法的具体详情如下:
包路径:org.apache.hadoop.mapreduce.lib.input.KeyValueLineRecordReader
类名称:KeyValueLineRecordReader
方法名:findSeparator
KeyValueLineRecordReader.findSeparator介绍
暂无
代码示例
代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core
public static int findSeparator(byte[] utf, int start, int length,
byte sep) {
return org.apache.hadoop.mapreduce.lib.input.
KeyValueLineRecordReader.findSeparator(utf, start, length, sep);
}
代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core
public static int findSeparator(byte[] utf, int start, int length,
byte sep) {
return org.apache.hadoop.mapreduce.lib.input.
KeyValueLineRecordReader.findSeparator(utf, start, length, sep);
}
代码示例来源:origin: org.apache.hadoop/hadoop-mapred
public static int findSeparator(byte[] utf, int start, int length,
byte sep) {
return org.apache.hadoop.mapreduce.lib.input.
KeyValueLineRecordReader.findSeparator(utf, start, length, sep);
}
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
public static int findSeparator(byte[] utf, int start, int length,
byte sep) {
return org.apache.hadoop.mapreduce.lib.input.
KeyValueLineRecordReader.findSeparator(utf, start, length, sep);
}
代码示例来源:origin: io.hops/hadoop-mapreduce-client-core
public static int findSeparator(byte[] utf, int start, int length,
byte sep) {
return org.apache.hadoop.mapreduce.lib.input.
KeyValueLineRecordReader.findSeparator(utf, start, length, sep);
}
代码示例来源:origin: com.github.jiayuhan-it/hadoop-mapreduce-client-core
/** Read key/value pair in a line. */
public synchronized boolean nextKeyValue()
throws IOException {
byte[] line = null;
int lineLen = -1;
if (lineRecordReader.nextKeyValue()) {
innerValue = lineRecordReader.getCurrentValue();
line = innerValue.getBytes();
lineLen = innerValue.getLength();
} else {
return false;
}
if (line == null)
return false;
if (key == null) {
key = new Text();
}
if (value == null) {
value = new Text();
}
int pos = findSeparator(line, 0, lineLen, this.separator);
setKeyValue(key, value, line, lineLen, pos);
return true;
}
代码示例来源:origin: org.apache.hadoop/hadoop-mapred
/** Read key/value pair in a line. */
public synchronized boolean nextKeyValue()
throws IOException {
byte[] line = null;
int lineLen = -1;
if (lineRecordReader.nextKeyValue()) {
innerValue = lineRecordReader.getCurrentValue();
line = innerValue.getBytes();
lineLen = innerValue.getLength();
} else {
return false;
}
if (line == null)
return false;
if (key == null) {
key = new Text();
}
if (value == null) {
value = new Text();
}
int pos = findSeparator(line, 0, lineLen, this.separator);
setKeyValue(key, value, line, lineLen, pos);
return true;
}
代码示例来源:origin: io.hops/hadoop-mapreduce-client-core
/** Read key/value pair in a line. */
public synchronized boolean nextKeyValue()
throws IOException {
byte[] line = null;
int lineLen = -1;
if (lineRecordReader.nextKeyValue()) {
innerValue = lineRecordReader.getCurrentValue();
line = innerValue.getBytes();
lineLen = innerValue.getLength();
} else {
return false;
}
if (line == null)
return false;
if (key == null) {
key = new Text();
}
if (value == null) {
value = new Text();
}
int pos = findSeparator(line, 0, lineLen, this.separator);
setKeyValue(key, value, line, lineLen, pos);
return true;
}
代码示例来源:origin: ch.cern.hadoop/hadoop-mapreduce-client-core
/** Read key/value pair in a line. */
public synchronized boolean nextKeyValue()
throws IOException {
byte[] line = null;
int lineLen = -1;
if (lineRecordReader.nextKeyValue()) {
innerValue = lineRecordReader.getCurrentValue();
line = innerValue.getBytes();
lineLen = innerValue.getLength();
} else {
return false;
}
if (line == null)
return false;
if (key == null) {
key = new Text();
}
if (value == null) {
value = new Text();
}
int pos = findSeparator(line, 0, lineLen, this.separator);
setKeyValue(key, value, line, lineLen, pos);
return true;
}
代码示例来源:origin: io.prestosql.hadoop/hadoop-apache
/** Read key/value pair in a line. */
public synchronized boolean nextKeyValue()
throws IOException {
byte[] line = null;
int lineLen = -1;
if (lineRecordReader.nextKeyValue()) {
innerValue = lineRecordReader.getCurrentValue();
line = innerValue.getBytes();
lineLen = innerValue.getLength();
} else {
return false;
}
if (line == null)
return false;
if (key == null) {
key = new Text();
}
if (value == null) {
value = new Text();
}
int pos = findSeparator(line, 0, lineLen, this.separator);
setKeyValue(key, value, line, lineLen, pos);
return true;
}