public class HiveStorageProperties extends AbstractChildDBObject
| Modifier and Type | Class and Description |
|---|---|
static class |
HiveStorageProperties.PredefinedFileFormat
Enum of the predefined file formats that are available for the STORED
AS clause.
|
AbstractDBObject.ChildSupport, AbstractDBObject.ListenerSupport| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE
Type String for this object.
|
| Constructor and Description |
|---|
HiveStorageProperties() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCollectionItemDelim()
Gets the delimiter (terminator) String for collection items in the
underlying data.
|
java.lang.String |
getFieldDelim()
Gets the delimiter (terminator) String for fields in the underlying
data.
|
java.lang.String |
getFieldEscape()
Gets the escape String for the field terminator.
|
java.lang.String |
getHdfsLocation()
Gets the location for the hive table.
|
java.lang.String |
getInputFormatClass()
Gets the input format class for the storage format.
|
java.lang.String |
getLineDelim()
Gets the delimiter (terminator) String for lines in the
underlying data.
|
java.lang.String |
getMapKeyDelim()
Gets the delimiter (terminator) String for map keys in the
underlying data.
|
java.lang.String |
getNullFormat()
Gets the format String for the representation of null in the underlying
data.
|
java.lang.String |
getOutputFormatClass()
Gets the output format class for the storage format.
|
HiveStorageProperties.PredefinedFileFormat |
getPredefinedFileFormat()
Gets the predefined file format to use which will default the input
and output format class names when the table is created.
|
java.lang.Object |
getProperty(java.lang.String key)
Retrieves the value associated with a property.
|
java.lang.String |
getSerDeClass()
Gets the class name for the SerDe that will deal with this table's
storage.
|
TblProperty[] |
getSerDeProperties()
Gets the list of key/value pairs that represent the SERDEPROPERTIES for
the table.
|
java.lang.String |
getSerDePropertyValue(java.lang.String name)
Utility method to get the value for a SerDe property with the given name.
|
java.lang.String |
getStorageHandlerClass()
Gets the storage handler class.
|
java.lang.String |
getType()
Returns the type of this object.
|
void |
setCollectionItemDelim(java.lang.String delim)
Sets the delimiter (terminator) String for collection items in the
underlying data.
|
void |
setFieldDelim(java.lang.String delim)
Sets the delimiter (terminator) String for fields in the underlying
data.
|
void |
setFieldEscape(java.lang.String fieldEscape)
Gets the escape String for the field terminator.
|
void |
setHdfsLocation(java.lang.String location)
Sets the location for the hive table.
|
void |
setInputFormatClass(java.lang.String inputFormat)
Sets the input format class for the storage format.
|
void |
setLineDelim(java.lang.String delim)
Sets the delimiter (terminator) String for lines in the
underlying data.
|
void |
setMapKeyDelim(java.lang.String delim)
Sets the delimiter (terminator) String for map keys in the
underlying data.
|
void |
setNullFormat(java.lang.String nullFormat)
Gets the format String for the representation of null in the underlying
data.
|
void |
setOutputFormatClass(java.lang.String outputFormat)
Gets the output format class for the storage format.
|
void |
setPredefinedFileFormat(HiveStorageProperties.PredefinedFileFormat fileFormat)
Sets the predefined file format to use which will default the input
and output format class names when the table is created.
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the value for a property.
|
void |
setSerDeClass(java.lang.String serDeClass)
Sets the class name for the SerDe that will deal with this table's
storage.
|
void |
setSerDeProperties(TblProperty... serDeProps)
Sets the list of SERDEPROPERTIES for the table.
|
void |
setSerDeProperty(java.lang.String name,
java.lang.String value)
Utility method for setting a serde property with the given name/value.
|
void |
setStorageHandlerClass(java.lang.String storedBy)
Sets the storage handler class.
|
setParentaddObjectListener, addObjectListener, addObjectListener, changeParent, compareToImpl, copyObject, copyTo, copyTo, copyTo, copyTo, copyToImpl, equals, equalsImpl, findOwnedObject, findOwnedObject, findOwnedObject, findOwnedObject, findParent, fireObjectUpdated, firePropertyChanged, getChildSupport, getChildSupport, getID, getName, getOwnedObjects, getOwnedObjects, getOwnedObjectsImpl, getParent, getProperties, getProperty, getReferenceIDs, getReferenceIDsImpl, hashCode, includeOwnedObject, includesType, includesType, removeObjectListener, removeObjectListener, removeObjectListener, removeOwnedObject, removeThisAsParent, replaceReferenceIDs, setID, setName, setProperties, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParentaddObjectListener, copyTo, copyTo, copyTo, equals, findOwnedObject, findOwnedObject, findOwnedObject, getID, getName, getOwnedObjects, getOwnedObjects, getProperties, getProperty, getReferenceIDs, hashCode, removeObjectListener, removeOwnedObject, replaceReferenceIDs, setID, setName, setPropertiespublic static final java.lang.String TYPE
public java.lang.String getType()
DBObjectpublic java.lang.String getHdfsLocation()
public void setHdfsLocation(java.lang.String location)
location - the hive location (e.g. hdfs url)public TblProperty[] getSerDeProperties()
public void setSerDeProperties(TblProperty... serDeProps)
serDeProps - the serde propertiespublic java.lang.String getSerDePropertyValue(java.lang.String name)
name - the serde property name to look uppublic void setSerDeProperty(java.lang.String name,
java.lang.String value)
name - the serde property namevalue - the serde property value If null this will remove the given
serde property name.public java.lang.String getSerDeClass()
public void setSerDeClass(java.lang.String serDeClass)
serDeClass - the serde class namepublic java.lang.String getLineDelim()
public void setLineDelim(java.lang.String delim)
delim - the line delimiterpublic java.lang.String getMapKeyDelim()
public void setMapKeyDelim(java.lang.String delim)
delim - the map key delimiterpublic java.lang.String getCollectionItemDelim()
public void setCollectionItemDelim(java.lang.String delim)
delim - the collection item delimiterpublic java.lang.String getFieldDelim()
public void setFieldDelim(java.lang.String delim)
delim - the field delimiterpublic java.lang.String getFieldEscape()
public void setFieldEscape(java.lang.String fieldEscape)
fieldEscape - the field escapepublic java.lang.String getNullFormat()
public void setNullFormat(java.lang.String nullFormat)
public HiveStorageProperties.PredefinedFileFormat getPredefinedFileFormat()
public void setPredefinedFileFormat(HiveStorageProperties.PredefinedFileFormat fileFormat)
fileFormat - the predefined file formatpublic java.lang.String getInputFormatClass()
public void setInputFormatClass(java.lang.String inputFormat)
public java.lang.String getOutputFormatClass()
public void setOutputFormatClass(java.lang.String outputFormat)
public java.lang.String getStorageHandlerClass()
public void setStorageHandlerClass(java.lang.String storedBy)
storedBy - the storage handler classpublic void setProperty(java.lang.String key,
java.lang.Object value)
DBObjectnull removes
that property.setProperty in interface DBObjectsetProperty in class AbstractDBObjectkey - the property key to setvalue - the value to setpublic java.lang.Object getProperty(java.lang.String key)
DBObjectobj.getProperty( "name" ) == obj.getName()Both bean and extended property names are available as constants on the
Property class for properties that
the db-api supports natively.getProperty in interface DBObjectgetProperty in class AbstractDBObjectkey - the property key for which a value is desired.
exists.null value
if the property does not exist or is not set.