Class TokenizerApplier
java.lang.Object
org.apache.sysds.runtime.transform.tokenize.applier.TokenizerApplier
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TokenizerApplierCount,TokenizerApplierHash,TokenizerApplierPosition
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTokenizerApplier(int numIdCols, int maxTokens, boolean wideFormat, boolean applyPadding) -
Method Summary
Modifier and TypeMethodDescriptionvoidallocateInternalMeta(int numDocuments) intapplyInternalRepresentation(DocumentRepresentation[] internalRepresentation, FrameBlock out) voidbuild(DocumentRepresentation[] internalRepresentation, int inputRowStart, int blk) List<DependencyTask<?>>getApplyTasks(DocumentRepresentation[] internalRepresentation, FrameBlock out) List<DependencyTask<?>>getBuildTasks(DocumentRepresentation[] internalRepresentation) intgetMaxNumRows(int inRows) intlongabstract intgetNumRows(DocumentRepresentation[] internalRepresentation) <T,E> int getOutputRow(int inputRowStart, List<Map<T, E>> internalData) intgetOutputRow(int inputRowStart, DocumentRepresentation[] internalData) abstract Types.ValueType[]booleanboolean
-
Field Details
-
PADDING_STRING
- See Also:
-
-
Constructor Details
-
TokenizerApplier
public TokenizerApplier(int numIdCols, int maxTokens, boolean wideFormat, boolean applyPadding)
-
-
Method Details
-
applyInternalRepresentation
public int applyInternalRepresentation(DocumentRepresentation[] internalRepresentation, FrameBlock out) -
build
-
getBuildTasks
-
getApplyTasks
public List<DependencyTask<?>> getApplyTasks(DocumentRepresentation[] internalRepresentation, FrameBlock out) -
getOutSchema
-
hasPadding
public boolean hasPadding() -
getMaxTokens
public int getMaxTokens() -
getMaxNumRows
public int getMaxNumRows(int inRows) -
getNumRows
-
getOutputRow
-
getOutputRow
-
getNumCols
public long getNumCols() -
isWideFormat
public boolean isWideFormat() -
allocateInternalMeta
public void allocateInternalMeta(int numDocuments)
-