Package org.apache.calcite.util
Class Sources
java.lang.Object
org.apache.calcite.util.Sources
Utilities for
Source
.-
Method Summary
Modifier and TypeMethodDescriptionstatic Source
static Source
fromCharSource
(com.google.common.io.CharSource source) Creates aSource
from a generic text source such as string,CharBuffer
or text file.static Source
static Source
of
(CharSequence s) static Source
static Source
-
Method Details
-
of
-
of
-
file
-
of
-
fromCharSource
Creates aSource
from a generic text source such as string,CharBuffer
or text file. Useful when data is already in memory or can't be directly read from a file or url.- Parameters:
source
- generic "re-readable" source of characters- Returns:
Source
delegate forCharSource
(can't be null)- Throws:
NullPointerException
- whensource
is null
-
url
-