Package it.bancaditalia.oss.vtl.session
Interface VTLSession
-
- All Superinterfaces:
TransformationScheme
- All Known Implementing Classes:
VTLSessionImpl
public interface VTLSession extends TransformationScheme
This interface provide the user with the ability to manage all VTL code, data and metadata by providing high-level methods that the user can interact with.- Author:
- Valentino Pinna
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description VTLSession
addStatements(InputStream inputStream, Charset charset)
Adds some VTL statements to this session.VTLSession
addStatements(Reader reader)
Adds some VTL statements to this session.VTLSession
addStatements(String statements)
Adds some VTL statements to this session.VTLSession
addStatements(Path path, Charset charset)
Adds some VTL statements to this session.List<VTLValueMetadata>
compile()
Compile all the VTL code submitted to this session, and returns the metadata of all the objects contained in this session.Engine
getEngine()
Workspace
getWorkspace()
-
Methods inherited from interface it.bancaditalia.oss.vtl.model.transform.TransformationScheme
contains, eval, getMetadata, getParent, getRepository, getRule, linkLineage, resolve, resolve
-
-
-
-
Method Detail
-
addStatements
VTLSession addStatements(String statements)
Adds some VTL statements to this session. Code is parsed but not compiled.- Parameters:
statements
- A string containing the statements to add- Returns:
this
instance.
-
addStatements
VTLSession addStatements(Reader reader) throws IOException
Adds some VTL statements to this session. Code is parsed but not compiled. TheReader
will be consumed entirely and closed.- Parameters:
reader
- aReader
which provides the VTL statements to add.- Returns:
this
instance.- Throws:
IOException
-
addStatements
VTLSession addStatements(InputStream inputStream, Charset charset) throws IOException
Adds some VTL statements to this session. Code is parsed but not compiled. TheInputStream
will be consumed entirely and closed.- Parameters:
inputStream
- anInputStream
which provides the VTL statements to addcharset
- aCharset
instance which will be used to interpret the stream contents.- Returns:
this
instance.- Throws:
IOException
-
addStatements
VTLSession addStatements(Path path, Charset charset) throws IOException
Adds some VTL statements to this session. Code is parsed but not compiled.- Parameters:
path
- aPath
describing the position of a local file which provides the VTL statements to addcharset
- aCharset
instance which will be used to interpret the file contents.- Returns:
this
instance.- Throws:
IOException
-
compile
List<VTLValueMetadata> compile()
Compile all the VTL code submitted to this session, and returns the metadata of all the objects contained in this session.- Returns:
- a
List
ofVTLValueMetadata
instances, describing a VTL object each.
-
-