Package com.zendesk.maxwell.row
Class RowMapBuffer
- java.lang.Object
-
- com.zendesk.maxwell.util.ListWithDiskBuffer<RowMap>
-
- com.zendesk.maxwell.row.RowMapBuffer
-
public class RowMapBuffer extends ListWithDiskBuffer<RowMap>
-
-
Constructor Summary
Constructors Constructor Description RowMapBuffer(long maxInMemoryElements)RowMapBuffer(long maxInMemoryElements, float bufferMemoryUsage)RowMapBuffer(long maxInMemoryElements, long maxMemory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RowMap rowMap)protected RowMapevict()RowMapremoveFirst()voidsetSchemaId(Long schemaId)voidsetServerId(Long serverId)voidsetThreadId(Long threadId)voidsetXid(Long xid)protected booleanshouldBuffer()-
Methods inherited from class com.zendesk.maxwell.util.ListWithDiskBuffer
finalize, flushToDisk, getLast, inMemorySize, isEmpty, removeFirst, resetOutputStreamCaches, size
-
-
-
-
Method Detail
-
add
public void add(RowMap rowMap) throws IOException
- Overrides:
addin classListWithDiskBuffer<RowMap>- Throws:
IOException
-
shouldBuffer
protected boolean shouldBuffer()
- Overrides:
shouldBufferin classListWithDiskBuffer<RowMap>
-
evict
protected RowMap evict() throws IOException
- Overrides:
evictin classListWithDiskBuffer<RowMap>- Throws:
IOException
-
removeFirst
public RowMap removeFirst() throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
setXid
public void setXid(Long xid)
-
setServerId
public void setServerId(Long serverId)
-
setThreadId
public void setThreadId(Long threadId)
-
setSchemaId
public void setSchemaId(Long schemaId)
-
-