public class IoStep<S> extends AbstractStep<S,S> implements ReadWriting
Graph
.ReadWriting.Mode
id, labels, nextEnd, nextStep, previousStep, starts, traversal, traverserStepIdAndLabelsSetByChild
Constructor and Description |
---|
IoStep(Traversal.Admin traversal,
String file) |
Modifier and Type | Method and Description |
---|---|
IoStep |
clone()
Cloning is used to duplicate steps for the purpose of traversal optimization and OLTP replication.
|
void |
configure(Object... keyValues)
Accept a configuration to the
Step . |
protected String |
detectFileType() |
protected List<IoRegistry> |
detectRegistries() |
String |
getFile()
Get the file location to write to.
|
ReadWriting.Mode |
getMode() |
Parameters |
getParameters()
Gets the parameters on the step.
|
int |
hashCode() |
protected Traverser.Admin<S> |
processNextStart() |
protected Traverser.Admin<S> |
read(File file) |
void |
setMode(ReadWriting.Mode mode) |
String |
toString() |
protected Traverser.Admin<S> |
write(File file) |
addLabel, addStart, addStarts, equals, getId, getLabels, getNextStep, getPreviousStep, getStarts, getTraversal, hasNext, isTraverserStepIdAndLabelsSetByChild, next, prepareTraversalForNextStep, removeLabel, reset, setId, setNextStep, setPreviousStep, setTraversal
finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getRequirements
forEachRemaining, remove
public IoStep(Traversal.Admin traversal, String file)
public void setMode(ReadWriting.Mode mode)
setMode
in interface ReadWriting
public ReadWriting.Mode getMode()
getMode
in interface ReadWriting
public String getFile()
ReadWriting
getFile
in interface ReadWriting
public Parameters getParameters()
Parameterizing
getParameters
in interface Parameterizing
public void configure(Object... keyValues)
Configuring
Step
. Note that this interface extends Parameterizing
and so
there is an expectation that the Step
implementation will have a Parameters
instance that will
house any values passed to this method. Storing these configurations in Parameters
is not a requirement
however, IF the configuration is an expected option for the step and can be stored on a member field that can
be accessed on the step by more direct means (i.e. like a getter method).configure
in interface Configuring
protected Traverser.Admin<S> processNextStart()
processNextStart
in class AbstractStep<S,S>
protected Traverser.Admin<S> write(File file)
protected Traverser.Admin<S> read(File file)
protected String detectFileType()
protected List<IoRegistry> detectRegistries()
public int hashCode()
hashCode
in class AbstractStep<S,S>
public String toString()
toString
in class AbstractStep<S,S>
public IoStep clone()
Step
Step.reset()
is called. Moreover, the previous and next steps should be set to EmptyStep
.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.