io.deephaven.api.RawString Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-table-api Show documentation
Show all versions of deephaven-table-api Show documentation
The Deephaven table operations API
The newest version!
//
// Copyright (c) 2016-2024 Deephaven Data Labs and Patent Pending
//
package io.deephaven.api;
import io.deephaven.annotations.SimpleStyle;
import io.deephaven.api.expression.Expression;
import io.deephaven.api.filter.Filter;
import io.deephaven.api.filter.FilterNot;
import org.immutables.value.Value.Immutable;
import org.immutables.value.Value.Parameter;
/**
* An un-parsed string; used for cases where the server has string-parsing that hasn't been structurally represented at
* the api layer yet.
*/
@Immutable
@SimpleStyle
public abstract class RawString implements Expression, Filter {
public static RawString of(String x) {
return ImmutableRawString.of(x);
}
@Parameter
public abstract String value();
@Override
public final FilterNot invert() {
return Filter.not(this);
}
@Override
public final T walk(Expression.Visitor visitor) {
return visitor.visit(this);
}
@Override
public final T walk(Filter.Visitor visitor) {
return visitor.visit(this);
}
}