Class ProtocolDataReader
java.lang.Object
org.jumpmind.symmetric.io.data.reader.AbstractDataReader
org.jumpmind.symmetric.io.data.reader.ProtocolDataReader
- All Implemented Interfaces:
IDataReader,IDataResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected longprotected Batchprotected Batch.BatchTypeprotected BinaryEncodingprotected Stringprotected DataContextprotected Timestampprotected CsvReaderstatic final Stringprotected intprotected Objectprotected booleanprotected Readerprotected Stringprotected IStagedResourceprotected Map<Batch,Statistics> protected booleanprotected Stringprotected Stringprotected String[]Fields inherited from class org.jumpmind.symmetric.io.data.reader.AbstractDataReader
log -
Constructor Summary
ConstructorsConstructorDescriptionProtocolDataReader(Batch.BatchType batchType, String targetNodeId, File file) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, InputStream is) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, Reader reader) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, Reader reader, boolean streamToFile) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, String input) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, StringBuilder input) ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, IStagedResource stagedResource) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()nextData()voidopen(DataContext context) protected voidputStats(Statistics stats, String[] statsColumns, String[] statsValues) readNext()Methods inherited from class org.jumpmind.symmetric.io.data.reader.AbstractDataReader
logDebugAndCountBytes, toBatch, toReader, toReader
-
Field Details
-
CTX_LINE_NUMBER
-
stagedResource
-
reader
-
statistics
-
csvReader
-
context
-
next
-
batch
-
channelId
-
tableName
-
sourceNodeId
-
targetNodeId
-
binaryEncoding
-
noBinaryOldData
protected boolean noBinaryOldData -
batchType
-
lineNumber
protected int lineNumber -
tokens
-
streamToFile
protected boolean streamToFile -
baseTime
protected long baseTime -
createTime
-
-
Constructor Details
-
ProtocolDataReader
-
ProtocolDataReader
-
ProtocolDataReader
public ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, IStagedResource stagedResource) -
ProtocolDataReader
-
ProtocolDataReader
-
ProtocolDataReader
public ProtocolDataReader(Batch.BatchType batchType, String targetNodeId, Reader reader, boolean streamToFile) -
ProtocolDataReader
-
-
Method Details
-
getStagedResource
-
open
- Specified by:
openin interfaceIDataResource
-
readNext
-
nextBatch
- Specified by:
nextBatchin interfaceIDataReader
-
nextTable
- Specified by:
nextTablein interfaceIDataReader
-
nextData
- Specified by:
nextDatain interfaceIDataReader
-
close
public void close()- Specified by:
closein interfaceIDataResource
-
getStatistics
- Specified by:
getStatisticsin interfaceIDataResource
-
putStats
-