@InterfaceAudience.Public public abstract class Operation extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_MAX_COLS |
Constructor and Description |
---|
Operation() |
Modifier and Type | Method and Description |
---|---|
abstract Map<String,Object> |
getFingerprint()
Produces a Map containing a fingerprint which identifies the type and the static schema
components of a query (i.e.
|
String |
toJSON()
Produces a JSON object sufficient for description of a query in a debugging or logging context.
|
String |
toJSON(int maxCols)
Produces a JSON object for fingerprint and details exposure in a parseable format.
|
Map<String,Object> |
toMap()
Produces a Map containing a full summary of a query.
|
abstract Map<String,Object> |
toMap(int maxCols)
Produces a Map containing a summary of the details of a query beyond the scope of the
fingerprint (i.e.
|
String |
toString()
Produces a string representation of this Operation.
|
String |
toString(int maxCols)
Produces a string representation of this Operation.
|
private static final int DEFAULT_MAX_COLS
public Operation()
public abstract Map<String,Object> getFingerprint()
public abstract Map<String,Object> toMap(int maxCols)
maxCols
- a limit on the number of columns output prior to truncationpublic Map<String,Object> toMap()
public String toJSON(int maxCols) throws IOException
maxCols
- a limit on the number of columns to include in the JSONIOException
public String toJSON() throws IOException
IOException
public String toString(int maxCols)
maxCols
- a limit on the number of columns output in the summary prior to truncationCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.