/**
* Simple test for record-writer where number of rows are written to Geode, based on
* the specified block-size.
* The sample file contains 30 lines/rows. Here with block-size 10 total four blocks
* are stored each with max 10 records/rows.
*
* @throws Exception
*/
@Test
public void testWrite_SingleWriter() throws Exception {
// System.out.println("MonarchRecordWriterTest.testWrite_SingleWriter");
final List<String> lines = TestHelper.getResourceAsString(resourceFile);
final Map<String, Integer> expectedMap = new HashMap<String, Integer>(4) {{
put("0", 10);
put("1", 10);
put("2", 10);
put("3", 1);
}};
final int blockSize = 10;
assertOnRecordWriter(lines, expectedMap, "", blockSize);
Configuration conf = new Configuration();
conf.set("monarch.locator.port", testBase.getLocatorPort());
}
MonarchRecordWriterFTableTest.java 文件源码
java
阅读 24
收藏 0
点赞 0
评论 0
项目:monarch
作者:
评论列表
文章目录