QueryKey { public static QueryKey deserialize(byte[] serializedIndexKey) { checkNotNull(serializedIndexKey); return new QueryKey(Util.deserializeAvroObject(serializedIndexKey, reader)); } QueryKey(String indexName, QueryType queryType, Map<String, ByteBuffer> fields); private  QueryKey(AvroQueryKey AvroQueryKey); static QueryKey deserialize(byte[] serializedIndexKey); byte[] serialize(); Map<String, ByteBuffer> getKeys(); String getIndexName(); QueryType getQueryType(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void testDeserializeInvalidSerializedSchema() { QueryKey.deserialize(null); }