Interface UDTValue
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ADEPT2UDTValue
,FileUDTValue
,JsonUdtValue
public interface UDTValue extends Serializable
This interface encapsulates the value of a user-defined data type (UDT). A UDT is not understood by ADEPT2. Instead, the application reading or writing aUDTValue
needs to understand it. Besides, user-defined functions (UDFs) can be registered, that are able to interpret the data type and return data types understood by ADEPT2.Since UDTs are treated as black boxes, they are provided by InputStreams. This resembles BLOBs in database-management-systems.
To avoid serialisation problems do not implement this interface! Use
ADEPT2UDTValue
instead!- Author:
- Ulrich Kreher
- See Also:
Blob
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
Generated ID for serialisation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getUserDefinedType()
Gets the name (a string) of the user-defined type of this value.byte[]
getValueAsArray()
Gets the value as a byte array of this user-defined data type.InputStream
getValueAsStream()
Gets the value as anInputStream
of this user-defined data type.
-
-
-
Field Detail
-
serialVersionUID
static final long serialVersionUID
Generated ID for serialisation.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserDefinedType
String getUserDefinedType()
Gets the name (a string) of the user-defined type of this value.- Returns:
- The name of the user-defined data type of this value.
-
getValueAsStream
InputStream getValueAsStream()
Gets the value as anInputStream
of this user-defined data type.- Returns:
- The value of a (this) user-defined data type as an
InputStream
.
-
getValueAsArray
byte[] getValueAsArray()
Gets the value as a byte array of this user-defined data type.- Returns:
- The value of a (this) user-defined data type as an array of bytes.
-
-