public class BlockUploader extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BlockUploader.BlockStats
Provides information about a match.
|
Constructor and Description |
---|
BlockUploader(UploadMatcher umatcher,
int blocksize,
long maxrec,
String outName,
JoinFixAction uploadFixAct,
JoinFixAction remoteFixAct,
ServiceFindMode serviceMode,
boolean oneToOne,
boolean uploadEmpty)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Bi<StarTable,BlockUploader.BlockStats> |
runMatch(StarTable inTable,
QuerySequenceFactory qsFact,
StoragePolicy storage)
Performs an upload join in blocks.
|
public BlockUploader(UploadMatcher umatcher, int blocksize, long maxrec, String outName, JoinFixAction uploadFixAct, JoinFixAction remoteFixAct, ServiceFindMode serviceMode, boolean oneToOne, boolean uploadEmpty)
umatcher
- upload matcherblocksize
- maximum number of rows per uploaded blockmaxrec
- maximum number of output rows accepted in totaloutName
- name of output tableuploadFixAct
- name deduplication policy for upload tableremoteFixAct
- name deduplication policy for remote tableserviceMode
- upload match modeoneToOne
- true iff output rows match 1:1 with input rowsuploadEmpty
- determines behaviour if there are no input rows:
true means attempt the match anyway,
false means throw an IOExceptionpublic Bi<StarTable,BlockUploader.BlockStats> runMatch(StarTable inTable, QuerySequenceFactory qsFact, StoragePolicy storage) throws IOException
As currently implemented, the input table needs to have random access, and the output table has random access. It would be possible to stream on input and output to some extent, though each input chunk will still have to be random access.
The row indices given by ConeQueryRowSequence.getIndex
calls associated with the supplied qsFact
object
must correspond to the row indices in the supplied inTable
.
The service may truncate results for some of the blocks. Warnings will be written through the logging system if this happens. Summary information about such truncation will also be returned in the BlockStats object.
inTable
- input table, must have random accessqsFact
- object to generate positional queries when applied
to a tablestorage
- storage policy for storing raw result tableIOException
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.