Package | Description |
---|---|
org.apache.calcite.util |
Provides utility classes.
|
Modifier and Type | Class and Description |
---|---|
private static class |
Sources.FileSource
Implementation of
Source . |
Modifier and Type | Method and Description |
---|---|
Source |
Source.append(Source child)
Returns a source whose path concatenates this with a child.
|
Source |
Sources.FileSource.append(Source child) |
static Source |
Sources.file(java.io.File baseDirectory,
java.lang.String fileName) |
static Source |
Sources.of(java.io.File file) |
static Source |
Sources.of(java.net.URL url) |
Source |
Source.relative(Source source)
Returns a relative source, if this source is a child of a given base.
|
Source |
Sources.FileSource.relative(Source parent) |
Source |
Source.trim(java.lang.String suffix)
Looks for a suffix on a path and returns
either the path with the suffix removed
or the original path.
|
Source |
Sources.FileSource.trim(java.lang.String suffix) |
Source |
Source.trimOrNull(java.lang.String suffix)
Looks for a suffix on a path and returns
either the path with the suffix removed
or null.
|
Source |
Sources.FileSource.trimOrNull(java.lang.String suffix) |
static Source |
Sources.url(java.lang.String url) |
Modifier and Type | Method and Description |
---|---|
Source |
Source.append(Source child)
Returns a source whose path concatenates this with a child.
|
Source |
Sources.FileSource.append(Source child) |
private static boolean |
Sources.isFile(Source source) |
Source |
Source.relative(Source source)
Returns a relative source, if this source is a child of a given base.
|
Source |
Sources.FileSource.relative(Source parent) |
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.