@Test public void testCompressionEnabled() { Assert.assertFalse(serialization.isCompressionEnabled()); Configuration config = new Configuration(); config.set(Configuration.COMPRESSION_ENABLED, "true"); StorageSerialization s = new StorageSerialization(config); Assert.assertTrue(s.isCompressionEnabled()); }
public boolean isCompressionEnabled() { return compression; }
StorageSerialization { public boolean isCompressionEnabled() { return compression; } }
StorageSerialization { public boolean isCompressionEnabled() { return compression; } StorageSerialization(Configuration config); }
StorageSerialization { public boolean isCompressionEnabled() { return compression; } StorageSerialization(Configuration config); byte[] serializeKey(Object key); void serializeKey(Object key, DataOutput dataOutput); byte[] serializeValue(Object value); void serializeValue(Object value, DataOutput dataOutput); boolean isCompressionEnabled(); Object deserialize(byte[] buf); Object deserialize(DataInput is); }
StorageSerialization { public boolean isCompressionEnabled() { return compression; } StorageSerialization(Configuration config); byte[] serializeKey(Object key); void serializeKey(Object key, DataOutput dataOutput); byte[] serializeValue(Object value); void serializeValue(Object value, DataOutput dataOutput); boolean isCompressionEnabled(); Object deserialize(byte[] buf); Object deserialize(DataInput is);  }