@Test(expected = IllegalArgumentException.class) public void testNegativeMaxMemory() { BatchWriterConfig bwConfig = new BatchWriterConfig(); bwConfig.setMaxMemory(-1); }
public BatchWriterConfig setMaxMemory(long maxMemory) { if (maxMemory < 0) throw new IllegalArgumentException("Max memory must be non-negative."); this.maxMemory = maxMemory; return this; }
BatchWriterConfig implements Writable { public BatchWriterConfig setMaxMemory(long maxMemory) { if (maxMemory < 0) throw new IllegalArgumentException("Max memory must be non-negative."); this.maxMemory = maxMemory; return this; } }
BatchWriterConfig implements Writable { public BatchWriterConfig setMaxMemory(long maxMemory) { if (maxMemory < 0) throw new IllegalArgumentException("Max memory must be non-negative."); this.maxMemory = maxMemory; return this; }  }
BatchWriterConfig implements Writable { public BatchWriterConfig setMaxMemory(long maxMemory) { if (maxMemory < 0) throw new IllegalArgumentException("Max memory must be non-negative."); this.maxMemory = maxMemory; return this; }  BatchWriterConfig setMaxMemory(long maxMemory); BatchWriterConfig setMaxLatency(long maxLatency, TimeUnit timeUnit); BatchWriterConfig setTimeout(long timeout, TimeUnit timeUnit); BatchWriterConfig setMaxWriteThreads(int maxWriteThreads); long getMaxMemory(); long getMaxLatency(TimeUnit timeUnit); long getTimeout(TimeUnit timeUnit); int getMaxWriteThreads(); Durability getDurability(); BatchWriterConfig setDurability(Durability durability); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override boolean equals(Object o); BatchWriterConfig merge(BatchWriterConfig other); @Override int hashCode(); @Override String toString(); }
BatchWriterConfig implements Writable { public BatchWriterConfig setMaxMemory(long maxMemory) { if (maxMemory < 0) throw new IllegalArgumentException("Max memory must be non-negative."); this.maxMemory = maxMemory; return this; }  BatchWriterConfig setMaxMemory(long maxMemory); BatchWriterConfig setMaxLatency(long maxLatency, TimeUnit timeUnit); BatchWriterConfig setTimeout(long timeout, TimeUnit timeUnit); BatchWriterConfig setMaxWriteThreads(int maxWriteThreads); long getMaxMemory(); long getMaxLatency(TimeUnit timeUnit); long getTimeout(TimeUnit timeUnit); int getMaxWriteThreads(); Durability getDurability(); BatchWriterConfig setDurability(Durability durability); @Override void write(DataOutput out); @Override void readFields(DataInput in); @Override boolean equals(Object o); BatchWriterConfig merge(BatchWriterConfig other); @Override int hashCode(); @Override String toString();  }