IndexRowKeyBuilder { public IndexRowKeyBuilder withQueryKey(QueryKey queryKey, TableSchema tableSchema) { checkNotNull(queryKey, "queryKey must not be null."); checkNotNull(tableSchema, "tableSchema must not be null."); this.fields = queryKey.getKeys(); this.indexName = queryKey.getIndexName(); this.tableSchema = tableSchema; return this; } private  IndexRowKeyBuilder(); static IndexRowKeyBuilder newBuilder(long tableId,
                                                long indexId); IndexRowKeyBuilder withSortOrder(SortOrder order); IndexRowKeyBuilder withRow(Row row,
                                      String indexName,
                                      TableSchema tableSchema); IndexRowKeyBuilder withQueryKey(QueryKey queryKey,
                                           TableSchema tableSchema); IndexRowKeyBuilder withUUID(UUID uuid); IndexRowKey build();  }
@Test(expected = NullPointerException.class) public void testBuilderQueryKeyNullQueryKey() { builder.withQueryKey(null, getSchema()); }
@Test(expected = NullPointerException.class) public void testBuilderQueryKeyNullTableSchema() { builder.withQueryKey(getQueryKey(), null); }
@Test public void testBuilderRecords() { builder.withQueryKey(getQueryKey(), getSchema()); }