Package org.apache.calcite.util
Class Sources
java.lang.Object
org.apache.calcite.util.Sources
Utilities for
Source.-
Method Summary
Modifier and TypeMethodDescriptionstatic Sourcestatic SourcefromCharSource(com.google.common.io.CharSource source) Creates aSourcefrom a generic text source such as string,CharBufferor text file.static Sourcestatic Sourceof(CharSequence s) static Sourcestatic Source
-
Method Details
-
of
-
of
-
file
-
of
-
fromCharSource
Creates aSourcefrom a generic text source such as string,CharBufferor 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:
Sourcedelegate forCharSource(can't be null)- Throws:
NullPointerException- whensourceis null
-
url
-