()
| 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() { |
nothing calls this directly
no test coverage detected