public class Checkpoint extends Lop
Lop.SimpleInstType, Lop.Type, Lop.VisitStatus
Modifier and Type | Field and Description |
---|---|
static boolean |
CHECKPOINT_SPARSE_CSR |
static org.apache.spark.storage.StorageLevel |
DEFAULT_STORAGE_LEVEL |
static String |
OPCODE |
static org.apache.spark.storage.StorageLevel |
SER_STORAGE_LEVEL |
_beginColumn, _beginLine, _endColumn, _endLine, _filename, CP_CHILD_THREAD, CP_ROOT_THREAD_ID, DATATYPE_PREFIX, FILE_SEPARATOR, FRAME_VAR_NAME_PREFIX, INSTRUCTION_DELIMITOR, LITERAL_PREFIX, MATRIX_VAR_NAME_PREFIX, NAME_VALUE_SEPARATOR, OPERAND_DELIMITOR, PROCESS_PREFIX, SAMPLE_FRACTION, SCALAR_VAR_NAME_PREFIX, UPDATE_INPLACE_PREFIX, VALUETYPE_PREFIX, VARIABLE_NAME_PLACEHOLDER
Constructor and Description |
---|
Checkpoint(Lop input,
Types.DataType dt,
Types.ValueType vt,
String level)
TODO change string parameter storage.level to StorageLevel as soon as we can assume
that Spark libraries are always available.
|
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultStorageLevelString() |
String |
getInstructions(String input1,
String output)
Method should be overridden if needed
|
static String |
getSerializeStorageLevelString() |
org.apache.spark.storage.StorageLevel |
getStorageLevel() |
static String |
getStorageLevelString(org.apache.spark.storage.StorageLevel level)
This is a utility method because Sparks StorageLevel.toString() is incompatible with its own
fromString() method.
|
void |
setStorageLevel(org.apache.spark.storage.StorageLevel level) |
String |
toString()
Method to have Lops print their state.
|
addInput, addOutput, addToDag, createReachable, getBeginColumn, getBeginLine, getDataType, getEndColumn, getEndLine, getExecType, getFilename, getID, getInputs, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getInstructions, getLevel, getOutputParameters, getOutputs, getPrivacyConstraint, getProducesIntermediateOutput, getReachable, getSimpleInstructionType, getType, getValueType, getVisited, isDataExecLocation, isVariable, prepInputOperand, prepInputOperand, prepOperand, prepOperand, prepOutputOperand, prepOutputOperand, prepOutputOperand, prepScalarInputOperand, prepScalarInputOperand, prepScalarLabel, prepScalarOperand, printErrorLocation, removeConsumer, resetVisitStatus, setAllPositions, setBeginColumn, setBeginLine, setConsumerCount, setDataType, setEndColumn, setEndLine, setFilename, setPrivacyConstraint, setValueType, setVisited
public static final String OPCODE
public static final org.apache.spark.storage.StorageLevel DEFAULT_STORAGE_LEVEL
public static final org.apache.spark.storage.StorageLevel SER_STORAGE_LEVEL
public static final boolean CHECKPOINT_SPARSE_CSR
public Checkpoint(Lop input, Types.DataType dt, Types.ValueType vt, String level)
input
- low-level operatordt
- data typevt
- value typelevel
- storage levelpublic org.apache.spark.storage.StorageLevel getStorageLevel()
public void setStorageLevel(org.apache.spark.storage.StorageLevel level)
public String toString()
Lop
public String getInstructions(String input1, String output)
Lop
getInstructions
in class Lop
input1
- input 1output
- outputpublic static String getStorageLevelString(org.apache.spark.storage.StorageLevel level)
level
- RDD storage levelpublic static String getDefaultStorageLevelString()
public static String getSerializeStorageLevelString()
Copyright © 2020 The Apache Software Foundation. All rights reserved.