public class CsvInputData extends BaseStepData implements StepDataInterface
BaseStepData.StepExecutionStatus
Modifier and Type | Field and Description |
---|---|
ByteBuffer |
bb |
byte[] |
binaryFilename |
long |
blockToRead |
int |
bufferSize |
byte[] |
byteBuffer |
long |
bytesToSkipInFirstFile |
org.pentaho.di.core.row.RowMetaInterface |
convertRowMeta |
CrLfMatcherInterface |
crLfMatcher |
byte[] |
delimiter |
PatternMatcherInterface |
delimiterMatcher |
byte[] |
enclosure |
PatternMatcherInterface |
enclosureMatcher |
EncodingType |
encodingType |
int |
endBuffer |
long |
endPosition |
FileChannel |
fc |
int |
filenameFieldIndex |
String[] |
filenames |
int |
filenr |
long |
fileSize |
List<Long> |
fileSizes |
FileInputStream |
fis |
boolean |
isAddingRowNumber |
org.pentaho.di.core.row.RowMetaInterface |
outputRowMeta |
boolean |
parallel |
int |
preferredBufferSize |
long |
rowNumber |
int |
rownumFieldIndex |
int |
startBuffer |
int |
startFilenr |
long |
startPosition |
int |
stepNumber |
boolean |
stopReading |
long |
totalBytesRead |
long |
totalFileSize |
int |
totalNumberOfSteps |
Constructor and Description |
---|
CsvInputData() |
Modifier and Type | Method and Description |
---|---|
boolean |
increaseEndBuffer()
Increase the endBuffer pointer by one.
If there is not enough room in the buffer to go there, resize the byte buffer and read more data. if there is no more data to read and if the endBuffer pointer has reached the end of the byte buffer, we return true. |
int |
readBufferFromFile() |
byte[] |
removeEscapedEnclosures(byte[] field,
int nrEnclosuresFound)
[abcd "" defg] --> [abcd " defg]
[""""] --> [""]
[""] --> ["]
|
void |
resizeByteBufferArray() |
getStatus, isDisposed, isEmpty, isFinished, isIdle, isInitialising, isRunning, isStopped, setStatus
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getStatus, isDisposed, isEmpty, isFinished, isIdle, isInitialising, isRunning, setStatus
public FileChannel fc
public ByteBuffer bb
public org.pentaho.di.core.row.RowMetaInterface convertRowMeta
public org.pentaho.di.core.row.RowMetaInterface outputRowMeta
public byte[] byteBuffer
public int startBuffer
public int endBuffer
public int bufferSize
public byte[] delimiter
public byte[] enclosure
public int preferredBufferSize
public String[] filenames
public int filenr
public int startFilenr
public byte[] binaryFilename
public long fileSize
public FileInputStream fis
public boolean isAddingRowNumber
public long rowNumber
public boolean stopReading
public int stepNumber
public int totalNumberOfSteps
public long totalFileSize
public long blockToRead
public long startPosition
public long endPosition
public long bytesToSkipInFirstFile
public long totalBytesRead
public boolean parallel
public int filenameFieldIndex
public int rownumFieldIndex
public EncodingType encodingType
public PatternMatcherInterface delimiterMatcher
public PatternMatcherInterface enclosureMatcher
public CrLfMatcherInterface crLfMatcher
public void resizeByteBufferArray()
public int readBufferFromFile() throws IOException
IOException
public boolean increaseEndBuffer() throws IOException
IOException
- In case we get an error reading from the input file.public byte[] removeEscapedEnclosures(byte[] field, int nrEnclosuresFound)
[abcd "" defg] --> [abcd " defg] [""""] --> [""] [""] --> ["]