Record Class DatabeanExportService.DatabeanExportRequest<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>>
java.lang.Object
java.lang.Record
io.datarouter.plugin.dataexport.service.exporting.DatabeanExportService.DatabeanExportRequest<PK,D,F>
- Enclosing class:
DatabeanExportService
public static record DatabeanExportService.DatabeanExportRequest<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>> (io.datarouter.storage.file.Directory tableDirectory, DatabeanExportKvFileService kvFileService, io.datarouter.types.Ulid exportId, io.datarouter.storage.node.op.raw.read.SortedStorageReader.PhysicalSortedStorageReaderNode<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,D extends io.datarouter.model.databean.Databean<PK,D>,F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK,D>> node, io.datarouter.nodewatch.service.TableSamplerService tableSamplerService, io.datarouter.util.tuple.Range<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>> pkRange, long maxRows, io.datarouter.scanner.Threads partThreads, ExecutorService prefetchExec, int scanBatchSize, int tableSamplesPerPart)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDatabeanExportRequest(io.datarouter.storage.file.Directory tableDirectory, DatabeanExportKvFileService kvFileService, io.datarouter.types.Ulid exportId, io.datarouter.storage.node.op.raw.read.SortedStorageReader.PhysicalSortedStorageReaderNode<PK, D, F> node, io.datarouter.nodewatch.service.TableSamplerService tableSamplerService, io.datarouter.util.tuple.Range<PK> pkRange, long maxRows, io.datarouter.scanner.Threads partThreads, ExecutorService prefetchExec, int scanBatchSize, int tableSamplesPerPart) Creates an instance of aDatabeanExportRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.io.datarouter.types.UlidexportId()Returns the value of theexportIdrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thekvFileServicerecord component.longmaxRows()Returns the value of themaxRowsrecord component.node()Returns the value of thenoderecord component.io.datarouter.scanner.ThreadsReturns the value of thepartThreadsrecord component.io.datarouter.util.tuple.Range<PK> pkRange()Returns the value of thepkRangerecord component.Returns the value of theprefetchExecrecord component.intReturns the value of thescanBatchSizerecord component.io.datarouter.storage.file.DirectoryReturns the value of thetableDirectoryrecord component.io.datarouter.nodewatch.service.TableSamplerServiceReturns the value of thetableSamplerServicerecord component.intReturns the value of thetableSamplesPerPartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatabeanExportRequest
public DatabeanExportRequest(io.datarouter.storage.file.Directory tableDirectory, DatabeanExportKvFileService kvFileService, io.datarouter.types.Ulid exportId, io.datarouter.storage.node.op.raw.read.SortedStorageReader.PhysicalSortedStorageReaderNode<PK, D, F> node, io.datarouter.nodewatch.service.TableSamplerService tableSamplerService, io.datarouter.util.tuple.Range<PK> pkRange, long maxRows, io.datarouter.scanner.Threads partThreads, ExecutorService prefetchExec, int scanBatchSize, int tableSamplesPerPart) Creates an instance of aDatabeanExportRequestrecord class.- Parameters:
tableDirectory- the value for thetableDirectoryrecord componentkvFileService- the value for thekvFileServicerecord componentexportId- the value for theexportIdrecord componentnode- the value for thenoderecord componenttableSamplerService- the value for thetableSamplerServicerecord componentpkRange- the value for thepkRangerecord componentmaxRows- the value for themaxRowsrecord componentpartThreads- the value for thepartThreadsrecord componentprefetchExec- the value for theprefetchExecrecord componentscanBatchSize- the value for thescanBatchSizerecord componenttableSamplesPerPart- the value for thetableSamplesPerPartrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
tableDirectory
public io.datarouter.storage.file.Directory tableDirectory()Returns the value of thetableDirectoryrecord component.- Returns:
- the value of the
tableDirectoryrecord component
-
kvFileService
Returns the value of thekvFileServicerecord component.- Returns:
- the value of the
kvFileServicerecord component
-
exportId
public io.datarouter.types.Ulid exportId()Returns the value of theexportIdrecord component.- Returns:
- the value of the
exportIdrecord component
-
node
public io.datarouter.storage.node.op.raw.read.SortedStorageReader.PhysicalSortedStorageReaderNode<PK,D, node()F> Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
tableSamplerService
public io.datarouter.nodewatch.service.TableSamplerService tableSamplerService()Returns the value of thetableSamplerServicerecord component.- Returns:
- the value of the
tableSamplerServicerecord component
-
pkRange
Returns the value of thepkRangerecord component.- Returns:
- the value of the
pkRangerecord component
-
maxRows
public long maxRows()Returns the value of themaxRowsrecord component.- Returns:
- the value of the
maxRowsrecord component
-
partThreads
public io.datarouter.scanner.Threads partThreads()Returns the value of thepartThreadsrecord component.- Returns:
- the value of the
partThreadsrecord component
-
prefetchExec
Returns the value of theprefetchExecrecord component.- Returns:
- the value of the
prefetchExecrecord component
-
scanBatchSize
public int scanBatchSize()Returns the value of thescanBatchSizerecord component.- Returns:
- the value of the
scanBatchSizerecord component
-
tableSamplesPerPart
public int tableSamplesPerPart()Returns the value of thetableSamplesPerPartrecord component.- Returns:
- the value of the
tableSamplesPerPartrecord component
-