public class org.apache.cassandra.db.view.View
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.view.View
super_class: java.lang.Object
{
public static final java.lang.String USAGE_WARNING;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "Materialized views are experimental and are not recommended for production use."
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private volatile org.apache.cassandra.config.ViewDefinition definition;
descriptor: Lorg/apache/cassandra/config/ViewDefinition;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final org.apache.cassandra.db.ColumnFamilyStore baseCfs;
descriptor: Lorg/apache/cassandra/db/ColumnFamilyStore;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public volatile java.util.List<org.apache.cassandra.config.ColumnDefinition> baseNonPKColumnsInViewPK;
descriptor: Ljava/util/List;
flags: (0x0041) ACC_PUBLIC, ACC_VOLATILE
Signature: Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition;>;
private org.apache.cassandra.db.view.ViewBuilder builder;
descriptor: Lorg/apache/cassandra/db/view/ViewBuilder;
flags: (0x0002) ACC_PRIVATE
private final org.apache.cassandra.cql3.statements.SelectStatement$RawStatement rawSelect;
descriptor: Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private org.apache.cassandra.cql3.statements.SelectStatement select;
descriptor: Lorg/apache/cassandra/cql3/statements/SelectStatement;
flags: (0x0002) ACC_PRIVATE
private org.apache.cassandra.db.ReadQuery query;
descriptor: Lorg/apache/cassandra/db/ReadQuery;
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/db/view/View;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.db.view.View.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/view/View;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.view.View.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.config.ViewDefinition, org.apache.cassandra.db.ColumnFamilyStore);
descriptor: (Lorg/apache/cassandra/config/ViewDefinition;Lorg/apache/cassandra/db/ColumnFamilyStore;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
2: aload 0
aload 1
getfield org.apache.cassandra.config.ViewDefinition.viewName:Ljava/lang/String;
putfield org.apache.cassandra.db.view.View.name:Ljava/lang/String;
3: aload 0
aload 1
getfield org.apache.cassandra.config.ViewDefinition.select:Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
putfield org.apache.cassandra.db.view.View.rawSelect:Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
4: aload 0
aload 1
invokevirtual org.apache.cassandra.db.view.View.updateDefinition:(Lorg/apache/cassandra/config/ViewDefinition;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/db/view/View;
0 6 1 definition Lorg/apache/cassandra/config/ViewDefinition;
0 6 2 baseCfs Lorg/apache/cassandra/db/ColumnFamilyStore;
MethodParameters:
Name Flags
definition
baseCfs
public org.apache.cassandra.config.ViewDefinition getDefinition();
descriptor: ()Lorg/apache/cassandra/config/ViewDefinition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.definition:Lorg/apache/cassandra/config/ViewDefinition;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/View;
public void updateDefinition(org.apache.cassandra.config.ViewDefinition);
descriptor: (Lorg/apache/cassandra/config/ViewDefinition;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.cassandra.db.view.View.definition:Lorg/apache/cassandra/config/ViewDefinition;
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
getfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
invokevirtual org.apache.cassandra.config.CFMetaData.allColumns:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.apache.cassandra.db.view.View org.apache.cassandra.config.ViewDefinition java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.config.ColumnDefinition
astore 3
start local 3 4: aload 0
aload 3
invokevirtual org.apache.cassandra.db.view.View.getViewColumn:(Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 5
start local 5 5: aload 5
ifnull 7
aload 3
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPrimaryKeyColumn:()Z
ifne 7
aload 5
invokevirtual org.apache.cassandra.config.ColumnDefinition.isPrimaryKeyColumn:()Z
ifeq 7
6: aload 2
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 0
aload 2
putfield org.apache.cassandra.db.view.View.baseNonPKColumnsInViewPK:Ljava/util/List;
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/db/view/View;
0 10 1 definition Lorg/apache/cassandra/config/ViewDefinition;
2 10 2 nonPKDefPartOfViewPK Ljava/util/List<Lorg/apache/cassandra/config/ColumnDefinition;>;
4 7 3 baseColumn Lorg/apache/cassandra/config/ColumnDefinition;
5 7 5 viewColumn Lorg/apache/cassandra/config/ColumnDefinition;
MethodParameters:
Name Flags
definition
public org.apache.cassandra.config.ColumnDefinition getViewColumn(org.apache.cassandra.config.ColumnDefinition);
descriptor: (Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/config/ColumnDefinition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.View.definition:Lorg/apache/cassandra/config/ViewDefinition;
getfield org.apache.cassandra.config.ViewDefinition.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Lorg/apache/cassandra/config/ColumnDefinition;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/View;
0 1 1 baseColumn Lorg/apache/cassandra/config/ColumnDefinition;
MethodParameters:
Name Flags
baseColumn
public org.apache.cassandra.config.ColumnDefinition getBaseColumn(org.apache.cassandra.config.ColumnDefinition);
descriptor: (Lorg/apache/cassandra/config/ColumnDefinition;)Lorg/apache/cassandra/config/ColumnDefinition;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 1
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
invokevirtual org.apache.cassandra.config.CFMetaData.getColumnDefinition:(Lorg/apache/cassandra/cql3/ColumnIdentifier;)Lorg/apache/cassandra/config/ColumnDefinition;
astore 2
start local 2 1: getstatic org.apache.cassandra.db.view.View.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.apache.cassandra.config.ColumnDefinition
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/view/View;
0 3 1 viewColumn Lorg/apache/cassandra/config/ColumnDefinition;
1 3 2 baseColumn Lorg/apache/cassandra/config/ColumnDefinition;
MethodParameters:
Name Flags
viewColumn
public boolean mayBeAffectedBy(org.apache.cassandra.db.DecoratedKey, org.apache.cassandra.db.rows.Row);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/rows/Row;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.db.view.View.getReadQuery:()Lorg/apache/cassandra/db/ReadQuery;
aload 1
aload 2
invokeinterface org.apache.cassandra.db.rows.Row.clustering:()Lorg/apache/cassandra/db/Clustering;
invokeinterface org.apache.cassandra.db.ReadQuery.selectsClustering:(Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/Clustering;)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/view/View;
0 3 1 partitionKey Lorg/apache/cassandra/db/DecoratedKey;
0 3 2 update Lorg/apache/cassandra/db/rows/Row;
MethodParameters:
Name Flags
partitionKey
update
public boolean matchesViewFilter(org.apache.cassandra.db.DecoratedKey, org.apache.cassandra.db.rows.Row, int);
descriptor: (Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/rows/Row;I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.apache.cassandra.db.view.View.getReadQuery:()Lorg/apache/cassandra/db/ReadQuery;
aload 1
aload 2
invokeinterface org.apache.cassandra.db.rows.Row.clustering:()Lorg/apache/cassandra/db/Clustering;
invokeinterface org.apache.cassandra.db.ReadQuery.selectsClustering:(Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/Clustering;)Z
ifeq 3
1: aload 0
invokevirtual org.apache.cassandra.db.view.View.getSelectStatement:()Lorg/apache/cassandra/cql3/statements/SelectStatement;
invokevirtual org.apache.cassandra.cql3.statements.SelectStatement.rowFilterForInternalCalls:()Lorg/apache/cassandra/db/filter/RowFilter;
aload 0
getfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.metadata:Lorg/apache/cassandra/config/CFMetaData;
aload 1
aload 2
iload 3
invokevirtual org.apache.cassandra.db.filter.RowFilter.isSatisfiedBy:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/db/DecoratedKey;Lorg/apache/cassandra/db/rows/Row;I)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/view/View;
0 4 1 partitionKey Lorg/apache/cassandra/db/DecoratedKey;
0 4 2 baseRow Lorg/apache/cassandra/db/rows/Row;
0 4 3 nowInSec I
MethodParameters:
Name Flags
partitionKey
baseRow
nowInSec
public org.apache.cassandra.cql3.statements.SelectStatement getSelectStatement();
descriptor: ()Lorg/apache/cassandra/cql3/statements/SelectStatement;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.select:Lorg/apache/cassandra/cql3/statements/SelectStatement;
ifnonnull 6
1: invokestatic org.apache.cassandra.service.ClientState.forInternalCalls:()Lorg/apache/cassandra/service/ClientState;
astore 1
start local 1 2: aload 1
aload 0
getfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
invokevirtual org.apache.cassandra.service.ClientState.setKeyspace:(Ljava/lang/String;)V
3: aload 0
getfield org.apache.cassandra.db.view.View.rawSelect:Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
aload 1
invokevirtual org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepareKeyspace:(Lorg/apache/cassandra/service/ClientState;)V
4: aload 0
getfield org.apache.cassandra.db.view.View.rawSelect:Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
iconst_1
invokestatic org.apache.cassandra.service.ClientState.forInternalCalls:()Lorg/apache/cassandra/service/ClientState;
invokevirtual org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepare:(ZLorg/apache/cassandra/service/ClientState;)Lorg/apache/cassandra/cql3/statements/ParsedStatement$Prepared;
astore 2
start local 2 5: aload 0
aload 2
getfield org.apache.cassandra.cql3.statements.ParsedStatement$Prepared.statement:Lorg/apache/cassandra/cql3/CQLStatement;
checkcast org.apache.cassandra.cql3.statements.SelectStatement
putfield org.apache.cassandra.db.view.View.select:Lorg/apache/cassandra/cql3/statements/SelectStatement;
end local 2 end local 1 6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.view.View.select:Lorg/apache/cassandra/cql3/statements/SelectStatement;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/view/View;
2 6 1 state Lorg/apache/cassandra/service/ClientState;
5 6 2 prepared Lorg/apache/cassandra/cql3/statements/ParsedStatement$Prepared;
public org.apache.cassandra.db.ReadQuery getReadQuery();
descriptor: ()Lorg/apache/cassandra/db/ReadQuery;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.query:Lorg/apache/cassandra/db/ReadQuery;
ifnonnull 3
1: aload 0
aload 0
invokevirtual org.apache.cassandra.db.view.View.getSelectStatement:()Lorg/apache/cassandra/cql3/statements/SelectStatement;
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
invokestatic org.apache.cassandra.cql3.QueryOptions.forInternalCalls:(Ljava/util/List;)Lorg/apache/cassandra/cql3/QueryOptions;
invokestatic org.apache.cassandra.utils.FBUtilities.nowInSeconds:()I
invokevirtual org.apache.cassandra.cql3.statements.SelectStatement.getQuery:(Lorg/apache/cassandra/cql3/QueryOptions;I)Lorg/apache/cassandra/db/ReadQuery;
putfield org.apache.cassandra.db.view.View.query:Lorg/apache/cassandra/db/ReadQuery;
2: getstatic org.apache.cassandra.db.view.View.logger:Lorg/slf4j/Logger;
ldc "View query: {}"
aload 0
getfield org.apache.cassandra.db.view.View.rawSelect:Lorg/apache/cassandra/cql3/statements/SelectStatement$RawStatement;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.view.View.query:Lorg/apache/cassandra/db/ReadQuery;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/db/view/View;
public synchronized void build();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.builder:Lorg/apache/cassandra/db/view/ViewBuilder;
ifnull 4
1: getstatic org.apache.cassandra.db.view.View.logger:Lorg/slf4j/Logger;
ldc "Stopping current view builder due to schema change"
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
2: aload 0
getfield org.apache.cassandra.db.view.View.builder:Lorg/apache/cassandra/db/view/ViewBuilder;
invokevirtual org.apache.cassandra.db.view.ViewBuilder.stop:()V
3: aload 0
aconst_null
putfield org.apache.cassandra.db.view.View.builder:Lorg/apache/cassandra/db/view/ViewBuilder;
4: StackMap locals:
StackMap stack:
aload 0
new org.apache.cassandra.db.view.ViewBuilder
dup
aload 0
getfield org.apache.cassandra.db.view.View.baseCfs:Lorg/apache/cassandra/db/ColumnFamilyStore;
aload 0
invokespecial org.apache.cassandra.db.view.ViewBuilder.<init>:(Lorg/apache/cassandra/db/ColumnFamilyStore;Lorg/apache/cassandra/db/view/View;)V
putfield org.apache.cassandra.db.view.View.builder:Lorg/apache/cassandra/db/view/ViewBuilder;
5: getstatic org.apache.cassandra.db.compaction.CompactionManager.instance:Lorg/apache/cassandra/db/compaction/CompactionManager;
aload 0
getfield org.apache.cassandra.db.view.View.builder:Lorg/apache/cassandra/db/view/ViewBuilder;
invokevirtual org.apache.cassandra.db.compaction.CompactionManager.submitViewBuilder:(Lorg/apache/cassandra/db/view/ViewBuilder;)Ljava/util/concurrent/Future;
pop
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/db/view/View;
public static org.apache.cassandra.config.CFMetaData findBaseTable(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
aload 1
invokevirtual org.apache.cassandra.config.Schema.getView:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/ViewDefinition;
astore 2
start local 2 1: aload 2
ifnonnull 2
aconst_null
goto 3
StackMap locals: org.apache.cassandra.config.ViewDefinition
StackMap stack:
2: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 2
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
invokevirtual org.apache.cassandra.config.Schema.getCFMetaData:(Ljava/util/UUID;)Lorg/apache/cassandra/config/CFMetaData;
StackMap locals:
StackMap stack: org.apache.cassandra.config.CFMetaData
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 keyspace Ljava/lang/String;
0 4 1 viewName Ljava/lang/String;
1 4 2 view Lorg/apache/cassandra/config/ViewDefinition;
RuntimeVisibleAnnotations:
javax.annotation.Nullable()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nullable()
MethodParameters:
Name Flags
keyspace
viewName
public static java.lang.Iterable<org.apache.cassandra.config.ViewDefinition> findAll(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Iterable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
invokevirtual org.apache.cassandra.config.Schema.getKSMetaData:(Ljava/lang/String;)Lorg/apache/cassandra/schema/KeyspaceMetadata;
astore 2
start local 2 1: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 0
aload 1
invokevirtual org.apache.cassandra.config.Schema.getId:(Ljava/lang/String;Ljava/lang/String;)Ljava/util/UUID;
astore 3
start local 3 2: aload 2
getfield org.apache.cassandra.schema.KeyspaceMetadata.views:Lorg/apache/cassandra/schema/Views;
aload 3
invokedynamic apply(Ljava/util/UUID;)Lcom/google/common/base/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
org/apache/cassandra/db/view/View.lambda$0(Ljava/util/UUID;Lorg/apache/cassandra/config/ViewDefinition;)Z (6)
(Lorg/apache/cassandra/config/ViewDefinition;)Z
invokestatic com.google.common.collect.Iterables.filter:(Ljava/lang/Iterable;Lcom/google/common/base/Predicate;)Ljava/lang/Iterable;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 keyspace Ljava/lang/String;
0 3 1 baseTable Ljava/lang/String;
1 3 2 ksm Lorg/apache/cassandra/schema/KeyspaceMetadata;
2 3 3 baseId Ljava/util/UUID;
Signature: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Iterable<Lorg/apache/cassandra/config/ViewDefinition;>;
MethodParameters:
Name Flags
keyspace
baseTable
public static java.lang.String buildSelectStatement(java.lang.String, java.util.Collection<org.apache.cassandra.config.ColumnDefinition>, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
ldc "SELECT "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 3
start local 3 1: aload 1
ifnull 2
aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 3
2: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 3
ldc "*"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
goto 4
3: StackMap locals:
StackMap stack:
aload 3
aload 1
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/db/view/View.lambda$1(Lorg/apache/cassandra/config/ColumnDefinition;)Ljava/lang/String; (6)
(Lorg/apache/cassandra/config/ColumnDefinition;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
ldc ", "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: StackMap locals:
StackMap stack:
aload 3
ldc " FROM \""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\" WHERE "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " ALLOW FILTERING"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 cfName Ljava/lang/String;
0 6 1 includedColumns Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;
0 6 2 whereClause Ljava/lang/String;
1 6 3 rawSelect Ljava/lang/StringBuilder;
Signature: (Ljava/lang/String;Ljava/util/Collection<Lorg/apache/cassandra/config/ColumnDefinition;>;Ljava/lang/String;)Ljava/lang/String;
MethodParameters:
Name Flags
cfName
includedColumns
whereClause
public static java.lang.String relationsToWhereClause(java.util.List<org.apache.cassandra.cql3.Relation>);
descriptor: (Ljava/util/List;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 20
StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cql3.Relation
astore 2
start local 2 3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 4: aload 2
invokevirtual org.apache.cassandra.cql3.Relation.isMultiColumn:()Z
ifeq 10
5: aload 4
aload 2
checkcast org.apache.cassandra.cql3.MultiColumnRelation
invokevirtual org.apache.cassandra.cql3.MultiColumnRelation.getEntities:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
6: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/Object.toString()Ljava/lang/String; (5)
(Lorg/apache/cassandra/config/ColumnDefinition$Raw;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: ldc ", "
ldc "("
ldc ")"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
8: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: goto 11
10: StackMap locals: java.util.List java.util.List org.apache.cassandra.cql3.Relation java.util.Iterator java.lang.StringBuilder
StackMap stack:
aload 4
aload 2
checkcast org.apache.cassandra.cql3.SingleColumnRelation
invokevirtual org.apache.cassandra.cql3.SingleColumnRelation.getEntity:()Lorg/apache/cassandra/config/ColumnDefinition$Raw;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
11: StackMap locals:
StackMap stack:
aload 4
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual org.apache.cassandra.cql3.Relation.operator:()Lorg/apache/cassandra/cql3/Operator;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: aload 2
invokevirtual org.apache.cassandra.cql3.Relation.isIN:()Z
ifeq 18
13: aload 4
aload 2
invokevirtual org.apache.cassandra.cql3.Relation.getInValues:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
14: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
org/apache/cassandra/cql3/Term$Raw.getText()Ljava/lang/String; (5)
(Lorg/apache/cassandra/cql3/Term$Raw;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
15: ldc ", "
ldc "("
ldc ")"
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
16: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: goto 19
18: StackMap locals:
StackMap stack:
aload 4
aload 2
invokevirtual org.apache.cassandra.cql3.Relation.getValue:()Lorg/apache/cassandra/cql3/Term$Raw;
invokevirtual org.apache.cassandra.cql3.Term$Raw.getText:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: StackMap locals:
StackMap stack:
aload 1
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 2 20: StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
21: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
ldc " AND "
invokestatic java.util.stream.Collectors.joining:(Ljava/lang/CharSequence;)Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 whereClause Ljava/util/List<Lorg/apache/cassandra/cql3/Relation;>;
1 22 1 expressions Ljava/util/List<Ljava/lang/String;>;
3 20 2 rel Lorg/apache/cassandra/cql3/Relation;
4 20 4 sb Ljava/lang/StringBuilder;
Signature: (Ljava/util/List<Lorg/apache/cassandra/cql3/Relation;>;)Ljava/lang/String;
MethodParameters:
Name Flags
whereClause
public boolean hasSamePrimaryKeyColumnsAsBaseTable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.baseNonPKColumnsInViewPK:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/view/View;
public boolean enforceStrictLiveness();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.view.View.baseNonPKColumnsInViewPK:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/view/View;
private static boolean lambda$0(java.util.UUID, org.apache.cassandra.config.ViewDefinition);
descriptor: (Ljava/util/UUID;Lorg/apache/cassandra/config/ViewDefinition;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
getfield org.apache.cassandra.config.ViewDefinition.baseTableId:Ljava/util/UUID;
aload 0
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 view Lorg/apache/cassandra/config/ViewDefinition;
private static java.lang.String lambda$1(org.apache.cassandra.config.ColumnDefinition);
descriptor: (Lorg/apache/cassandra/config/ColumnDefinition;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.config.ColumnDefinition.name:Lorg/apache/cassandra/cql3/ColumnIdentifier;
invokevirtual org.apache.cassandra.cql3.ColumnIdentifier.toCQLString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 id Lorg/apache/cassandra/config/ColumnDefinition;
}
SourceFile: "View.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Raw = org.apache.cassandra.config.ColumnDefinition$Raw of org.apache.cassandra.config.ColumnDefinition
public abstract Raw = org.apache.cassandra.cql3.Term$Raw of org.apache.cassandra.cql3.Term
public Prepared = org.apache.cassandra.cql3.statements.ParsedStatement$Prepared of org.apache.cassandra.cql3.statements.ParsedStatement
public RawStatement = org.apache.cassandra.cql3.statements.SelectStatement$RawStatement of org.apache.cassandra.cql3.statements.SelectStatement