MCPcopy Create free account
hub / github.com/apache/orc / testSetValue

Method testSetValue

java/core/src/test/org/apache/orc/TestOrcConf.java:115–134  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 @Test
116 public void testSetValue() {
117 Properties tableProperties = new Properties();
118 Configuration conf = new Configuration();
119
120 ORC_STRIPE_SIZE_CONF.setLong(conf, 1000);
121 assertEquals(1000, ORC_STRIPE_SIZE_CONF.getLong(tableProperties, conf));
122
123 ORC_BLOCK_SIZE_CONF.setInt(conf, 2000);
124 assertEquals(2000, ORC_BLOCK_SIZE_CONF.getLong(tableProperties, conf));
125
126 ORC_ENABLE_INDEXES_CONF.setBoolean(conf, false);
127 assertFalse(ORC_ENABLE_INDEXES_CONF.getBoolean(tableProperties, conf));
128
129 ORC_COMPRESS_CONF.setString(conf, "snappy3");
130 assertEquals("snappy3", ORC_COMPRESS_CONF.getString(tableProperties, conf));
131
132 ORC_COMPRESS_CONF.setDouble(conf, 0.4);
133 assertEquals(0.4, ORC_COMPRESS_CONF.getDouble(tableProperties, conf));
134 }
135
136 @Test
137 public void testGetHiveConfValue() {

Callers

nothing calls this directly

Calls 9

setIntMethod · 0.80
setLongMethod · 0.45
getLongMethod · 0.45
setBooleanMethod · 0.45
getBooleanMethod · 0.45
setStringMethod · 0.45
getStringMethod · 0.45
setDoubleMethod · 0.45
getDoubleMethod · 0.45

Tested by

no test coverage detected