public final class Views extends java.lang.Object implements java.lang.Iterable<ViewDefinition>
Modifier and Type | Class and Description |
---|---|
static class |
Views.Builder |
Modifier and Type | Method and Description |
---|---|
static Views.Builder |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<ViewDefinition> |
get(java.lang.String name)
Get the materialized view with the specified name
|
ViewDefinition |
getNullable(java.lang.String name)
Get the view with the specified name
|
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<ViewDefinition> |
iterator() |
java.lang.Iterable<CFMetaData> |
metadatas() |
static Views |
none() |
Views |
replace(ViewDefinition view,
CFMetaData cfm)
Creates a MaterializedViews instance which contains an updated materialized view
|
int |
size() |
java.lang.String |
toString() |
Views |
with(ViewDefinition view)
Create a MaterializedViews instance with the provided materialized view added
|
Views |
without(java.lang.String name)
Creates a MaterializedViews instance with the materializedView with the provided name removed
|
public static Views.Builder builder()
public static Views none()
public java.util.Iterator<ViewDefinition> iterator()
iterator
in interface java.lang.Iterable<ViewDefinition>
public java.lang.Iterable<CFMetaData> metadatas()
public int size()
public boolean isEmpty()
public java.util.Optional<ViewDefinition> get(java.lang.String name)
name
- a non-qualified materialized view nameOptional
if the materialized view name is not found; a non-empty optional of ViewDefinition
otherwise@Nullable public ViewDefinition getNullable(java.lang.String name)
name
- a non-qualified view nameViewDefinition
otherwisepublic Views with(ViewDefinition view)
public Views without(java.lang.String name)
public Views replace(ViewDefinition view, CFMetaData cfm)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 The Apache Software Foundation