| Package | Description |
|---|---|
| org.bytedeco.tvm |
| Modifier and Type | Method and Description |
|---|---|
InputSplit.Blob |
InputSplit.Blob.dptr(Pointer setter) |
InputSplit.Blob |
InputSplit.Blob.dptr(Pointer setter) |
InputSplit.Blob |
InputSplit.Blob.getPointer(long i) |
InputSplit.Blob |
InputSplit.Blob.getPointer(long i) |
InputSplit.Blob |
InputSplit.Blob.position(long position) |
InputSplit.Blob |
InputSplit.Blob.position(long position) |
InputSplit.Blob |
InputSplit.Blob.size(long setter) |
InputSplit.Blob |
InputSplit.Blob.size(long setter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
InputSplit.NextBatch(InputSplit.Blob out_chunk,
long n_records)
\brief get a chunk of memory that can contain multiple records,
with hint for how many records is needed,
the caller needs to parse the content of the resulting chunk,
for text file, out_chunk can contain data of multiple lines
for recordio, out_chunk can contain multiple records(including headers)
This function ensures there won't be partial record in the chunk
caller can modify the memory content of out_chunk,
the memory is valid until next call to NextRecord, NextChunk or NextBatch
|
boolean |
InputSplit.NextBatch(InputSplit.Blob out_chunk,
long n_records)
\brief get a chunk of memory that can contain multiple records,
with hint for how many records is needed,
the caller needs to parse the content of the resulting chunk,
for text file, out_chunk can contain data of multiple lines
for recordio, out_chunk can contain multiple records(including headers)
This function ensures there won't be partial record in the chunk
caller can modify the memory content of out_chunk,
the memory is valid until next call to NextRecord, NextChunk or NextBatch
|
boolean |
InputSplit.NextChunk(InputSplit.Blob out_chunk)
\brief get a chunk of memory that can contain multiple records,
the caller needs to parse the content of the resulting chunk,
for text file, out_chunk can contain data of multiple lines
for recordio, out_chunk can contain multiple records(including headers)
This function ensures there won't be partial record in the chunk
caller can modify the memory content of out_chunk,
the memory is valid until next call to NextRecord, NextChunk or NextBatch
Usually NextRecord is sufficient, NextChunk can be used by some
multi-threaded parsers to parse the input content
|
boolean |
InputSplit.NextChunk(InputSplit.Blob out_chunk)
\brief get a chunk of memory that can contain multiple records,
the caller needs to parse the content of the resulting chunk,
for text file, out_chunk can contain data of multiple lines
for recordio, out_chunk can contain multiple records(including headers)
This function ensures there won't be partial record in the chunk
caller can modify the memory content of out_chunk,
the memory is valid until next call to NextRecord, NextChunk or NextBatch
Usually NextRecord is sufficient, NextChunk can be used by some
multi-threaded parsers to parse the input content
|
boolean |
InputSplit.NextRecord(InputSplit.Blob out_rec)
\brief get the next record, the returning value
is valid until next call to NextRecord, NextChunk or NextBatch
caller can modify the memory content of out_rec
For text, out_rec contains a single line
For recordio, out_rec contains one record content(with header striped)
|
boolean |
InputSplit.NextRecord(InputSplit.Blob out_rec)
\brief get the next record, the returning value
is valid until next call to NextRecord, NextChunk or NextBatch
caller can modify the memory content of out_rec
For text, out_rec contains a single line
For recordio, out_rec contains one record content(with header striped)
|
Copyright © 2022. All rights reserved.