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 long
protected Batch
protected Batch.BatchType
protected BinaryEncoding
protected String
protected DataContext
protected Timestamp
protected CsvReader
static final String
protected int
protected Object
protected boolean
protected Reader
protected String
protected IStagedResource
protected Map<Batch,
Statistics> protected boolean
protected String
protected String
protected 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 TypeMethodDescriptionvoid
close()
nextData()
void
open
(DataContext context) protected void
putStats
(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:
open
in interfaceIDataResource
-
readNext
-
nextBatch
- Specified by:
nextBatch
in interfaceIDataReader
-
nextTable
- Specified by:
nextTable
in interfaceIDataReader
-
nextData
- Specified by:
nextData
in interfaceIDataReader
-
close
public void close()- Specified by:
close
in interfaceIDataResource
-
getStatistics
- Specified by:
getStatistics
in interfaceIDataResource
-
putStats
-