Package com.github.loki4j.client.batch
Class LogRecordBatch
- java.lang.Object
-
- com.github.loki4j.client.batch.LogRecordBatch
-
public class LogRecordBatch extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LogRecordBatch(int capacity)LogRecordBatch(LogRecord[] source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longbatchId()intcapacity()voidclear()LogRecordget(int index)BatchConditiongetCondition()intgetEstimatedSizeBytes()voidinitFrom(LogRecord[] source, int len, int streamCount, BatchCondition condition, int estimatedSizeBytes)booleanisEmpty()intsize()voidsort(java.util.Comparator<LogRecord> comp)intstreamCount()LogRecord[]toArray()java.lang.StringtoString()
-
-
-
Constructor Detail
-
LogRecordBatch
public LogRecordBatch(int capacity)
-
LogRecordBatch
public LogRecordBatch(LogRecord[] source)
-
-
Method Detail
-
initFrom
public void initFrom(LogRecord[] source, int len, int streamCount, BatchCondition condition, int estimatedSizeBytes)
-
clear
public void clear()
-
sort
public void sort(java.util.Comparator<LogRecord> comp)
-
get
public LogRecord get(int index)
-
batchId
public long batchId()
-
size
public int size()
-
streamCount
public int streamCount()
-
isEmpty
public boolean isEmpty()
-
capacity
public int capacity()
-
getCondition
public BatchCondition getCondition()
-
getEstimatedSizeBytes
public int getEstimatedSizeBytes()
-
toArray
public LogRecord[] toArray()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-