@Test public void testIllegalShardSize() { ImmutableTargetedSweepMetadata.Builder builder = ImmutableTargetedSweepMetadata.builder().from( ALL_ZERO_METADATA); assertThatThrownBy(() -> builder.shard(300).build()).isInstanceOf(IllegalArgumentException.class); }
public abstract int shard();
TargetedSweepMetadata implements Persistable { public abstract int shard(); }
TargetedSweepMetadata implements Persistable { public abstract int shard();  }
TargetedSweepMetadata implements Persistable { public abstract int shard();  abstract boolean conservative(); abstract boolean dedicatedRow(); abstract int shard(); abstract long dedicatedRowNumber(); @Override byte[] persistToBytes(); }
TargetedSweepMetadata implements Persistable { public abstract int shard();  abstract boolean conservative(); abstract boolean dedicatedRow(); abstract int shard(); abstract long dedicatedRowNumber(); @Override byte[] persistToBytes(); static final int MAX_SHARDS; static final int MAX_DEDICATED_ROWS; static final Hydrator<TargetedSweepMetadata> BYTES_HYDRATOR; }