Package com.streambase.sb
Class StreamProperties
java.lang.Object
com.streambase.sb.StreamProperties
- All Implemented Interfaces:
Serializable
This class contains meta data about a stream.
Note: Serializations of instances of this class that are created (e.g., by using
ObjectOutputStream
) in one version of StreamBase in general will not be
deserializable in any other version of StreamBase.
- See Also:
-
Constructor Summary
ConstructorDescriptionStreamProperties
(String xml) Create a StreamProperties from the given string representation of an XML documentStreamProperties
(String xml, ByteOrder byteOrder) Create a StreamProperties from the given string representation of an XML documentStreamProperties
(Element element) Create a StreamProperties from the given XML documentStreamProperties
(Element element, ByteOrder byteOrder) Create a StreamProperties from the given XML document -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get capture transform strategyReturn the container name part of the nameReturn the module qualified name of this Stream.getName()
Return the stream name part of the nameReturn the fully qualified name of this Stream.Return the stream's Schemaint
hashCode()
boolean
Returnstrue
if this stream is an input streamboolean
Returns true if this stream is an Output StreamConvert to human string
-
Constructor Details
-
StreamProperties
Create a StreamProperties from the given XML document- Parameters:
element
- The starting element of the StreamProperties XML document- Throws:
StreamBaseException
- thrown when can not convert XML document into a StreamProperties
-
StreamProperties
StreamProperties(Element element, ByteOrder byteOrder) throws StreamBaseException Create a StreamProperties from the given XML document- Parameters:
element
- The starting element of the StreamProperties XML documentbyteOrder
- the byte order to create tuples in- Throws:
StreamBaseException
- thrown when can not convert XML document into a StreamProperties
-
StreamProperties
StreamProperties(String xml, ByteOrder byteOrder) throws StreamBaseException Create a StreamProperties from the given string representation of an XML document- Parameters:
xml
- The string representation of a XML document of a StreamPropertiesbyteOrder
- the byte order to create tuples in- Throws:
StreamBaseException
- thrown when can not convert XML document into a StreamProperties
-
StreamProperties
Create a StreamProperties from the given string representation of an XML document- Parameters:
xml
- The string representation of a XML document of a StreamProperties- Throws:
StreamBaseException
- thrown when can not convert XML document into a StreamProperties
-
-
Method Details
-
getQualifiedName
Return the fully qualified name of this Stream. Will include the container name and any modules.- Returns:
- container name + name
-
getName
Return the stream name part of the name- Returns:
- the stream name of the name
-
getContainerName
Return the container name part of the name- Returns:
- Return the container name part of the name
-
getModuleQualifiedName
Return the module qualified name of this Stream. Will include any module names, but does not include the container name.- Returns:
- (module names if any) + name
- Since:
- 5.0
-
getSchema
Return the stream's Schema- Returns:
- the Schema of the stream
-
toHumanString
Convert to human string- Returns:
- string
-
equals
-
hashCode
public int hashCode() -
isInputStream
public boolean isInputStream()Returnstrue
if this stream is an input stream- Returns:
true
if this stream is an input stream- Since:
- 6.2
-
isOutputStream
public boolean isOutputStream()Returns true if this stream is an Output Stream- Returns:
- true if an output stream
- Since:
- 6.2
-
getCaptureTransformStrategy
Get capture transform strategy- Returns:
- capture transform strategy
-