本文整理匯總了Java中io.github.htools.io.buffer.BufferReaderWriter.readStringArray方法的典型用法代碼示例。如果您正苦於以下問題:Java BufferReaderWriter.readStringArray方法的具體用法?Java BufferReaderWriter.readStringArray怎麽用?Java BufferReaderWriter.readStringArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類io.github.htools.io.buffer.BufferReaderWriter
的用法示例。
在下文中一共展示了BufferReaderWriter.readStringArray方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: readFields
import io.github.htools.io.buffer.BufferReaderWriter; //導入方法依賴的package包/類
@Override
public void readFields(DataInput in) throws IOException {
BufferReaderWriter reader = new BufferReaderWriter(in);
hosts = reader.readStringArray();
partition = readKey(reader);
int listsize = reader.readInt();
list = new ArrayList<VALUE>();
for (int q = 0; q < listsize; q++) {
list.add(readValue(reader));
}
}
示例2: readFields
import io.github.htools.io.buffer.BufferReaderWriter; //導入方法依賴的package包/類
@Override
public void readFields(DataInput in) throws IOException {
BufferReaderWriter reader = new BufferReaderWriter(in);
hosts = reader.readStringArray();
int listsize = reader.readInt();
list = new ArrayMap();
log.info("readFields %s %d", hosts, listsize);
for (int q = 0; q < listsize; q++) {
list.add(readKey(reader), readValue(reader));
}
}
示例3: readFields
import io.github.htools.io.buffer.BufferReaderWriter; //導入方法依賴的package包/類
@Override
public void readFields(DataInput in) throws IOException {
int length = in.readInt();
byte b[] = new byte[length];
in.readFully(b);
BufferReaderWriter reader = new BufferReaderWriter(b);
hosts = reader.readStringArray();
partition = reader.readInt();
int listsize = reader.readInt();
list = new ArrayList<P>();
for (int q = 0; q < listsize; q++) {
list.add(readKey(reader));
}
}