com.akiban.sql.parser
Class CopyStatementNode

java.lang.Object
  extended by com.akiban.sql.parser.QueryTreeNode
      extended by com.akiban.sql.parser.StatementNode
          extended by com.akiban.sql.parser.CopyStatementNode
All Implemented Interfaces:
Visitable

public class CopyStatementNode
extends StatementNode

An CopyStatementNode represents the COPY command.


Nested Class Summary
static class CopyStatementNode.Format
           
static class CopyStatementNode.Mode
           
 
Field Summary
 
Fields inherited from class com.akiban.sql.parser.QueryTreeNode
AUTOINCREMENT_CREATE_MODIFY, AUTOINCREMENT_INC_INDEX, AUTOINCREMENT_IS_AUTOINCREMENT_INDEX, AUTOINCREMENT_START_INDEX
 
Constructor Summary
CopyStatementNode()
           
 
Method Summary
 CursorNode asQuery()
          Turn the source portion into a regular Select query.
 void copyFrom(QueryTreeNode node)
          Fill this node with a deep copy of the given node.
 ResultColumnList getColumnList()
           
 long getCommitFrequency()
           
 String getDelimiter()
           
 String getEncoding()
           
 String getEscape()
           
 String getFilename()
           
 CopyStatementNode.Format getFormat()
           
 CopyStatementNode.Mode getMode()
           
 String getNullString()
           
 String getQuote()
           
 SubqueryNode getSubquery()
           
 TableName getTableName()
           
 void init(Object mode, Object subquery, Object filename)
          Initializer for an CopyStatementNode
 void init(Object mode, Object tableName, Object columnList, Object filename)
          Initializer for an CopyStatementNode
 boolean isHeader()
           
 void printSubNodes(int depth)
          Prints the sub-nodes of this object.
 void setCommitFrequency(long commitFrequency)
           
 void setDelimiter(String delimiter)
           
 void setEncoding(String encoding)
           
 void setEscape(String escape)
           
 void setFormat(CopyStatementNode.Format format)
           
 void setHeader(boolean header)
           
 void setNullString(String nullString)
           
 void setQuote(String quote)
           
 String statementToString()
           
 String toString()
          Convert this object to a String.
 
Methods inherited from class com.akiban.sql.parser.QueryTreeNode
accept, convertDefaultNode, debugFlush, debugPrint, formatNodeString, getBeginOffset, getDebugOutput, getEndOffset, getNodeFactory, getNodeType, getNullNode, getParserContext, getStatementType, getUserData, init, init, init, init, init, init, init, init, init, init, init, init, isInstanceOf, makeTableName, makeTableName, nodeHeader, printLabel, setBeginOffset, setDebugOutput, setEndOffset, setNodeType, setParserContext, setUserData, stackPrint, treePrint, treePrint, treePrint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyStatementNode

public CopyStatementNode()
Method Detail

init

public void init(Object mode,
                 Object subquery,
                 Object filename)
Initializer for an CopyStatementNode

Overrides:
init in class QueryTreeNode
Parameters:
mode - The copy direction.
subquery - The derived table.
filename - The file name or null.

init

public void init(Object mode,
                 Object tableName,
                 Object columnList,
                 Object filename)
Initializer for an CopyStatementNode

Overrides:
init in class QueryTreeNode
Parameters:
mode - The copy direction.
tableName - The table name.
columnList - The list of columns.
filename - The file name or null.

getMode

public CopyStatementNode.Mode getMode()

getSubquery

public SubqueryNode getSubquery()

getTableName

public TableName getTableName()

getColumnList

public ResultColumnList getColumnList()

getFilename

public String getFilename()

getFormat

public CopyStatementNode.Format getFormat()

setFormat

public void setFormat(CopyStatementNode.Format format)

getDelimiter

public String getDelimiter()

setDelimiter

public void setDelimiter(String delimiter)

getNullString

public String getNullString()

setNullString

public void setNullString(String nullString)

isHeader

public boolean isHeader()

setHeader

public void setHeader(boolean header)

getQuote

public String getQuote()

setQuote

public void setQuote(String quote)

getEscape

public String getEscape()

setEscape

public void setEscape(String escape)

getEncoding

public String getEncoding()

setEncoding

public void setEncoding(String encoding)

getCommitFrequency

public long getCommitFrequency()

setCommitFrequency

public void setCommitFrequency(long commitFrequency)

copyFrom

public void copyFrom(QueryTreeNode node)
              throws StandardException
Fill this node with a deep copy of the given node.

Overrides:
copyFrom in class QueryTreeNode
Throws:
StandardException

toString

public String toString()
Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing.

Overrides:
toString in class StatementNode
Returns:
This object as a String

statementToString

public String statementToString()
Specified by:
statementToString in class StatementNode

printSubNodes

public void printSubNodes(int depth)
Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work.

Overrides:
printSubNodes in class QueryTreeNode
Parameters:
depth - The depth of this node in the tree

asQuery

public CursorNode asQuery()
                   throws StandardException
Turn the source portion into a regular Select query.

Throws:
StandardException


Copyright © 2013 Akiban Technologies, Inc. All rights reserved.