Record Class QueryRecord.CachedStatement
java.lang.Object
java.lang.Record
org.apache.nifi.processors.standard.QueryRecord.CachedStatement
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
QueryRecord
private static record QueryRecord.CachedStatement(PreparedStatement statement, NiFiTable table, CalciteDatabase database)
extends Record
implements Closeable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CalciteDatabaseThe field for thedatabaserecord component.private final PreparedStatementThe field for thestatementrecord component.private final NiFiTableThe field for thetablerecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCachedStatement(PreparedStatement statement, NiFiTable table, CalciteDatabase database) Creates an instance of aCachedStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()database()Returns the value of thedatabaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thestatementrecord component.table()Returns the value of thetablerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
statement
The field for thestatementrecord component. -
table
The field for thetablerecord component. -
database
The field for thedatabaserecord component.
-
-
Constructor Details
-
CachedStatement
Creates an instance of aCachedStatementrecord class.- Parameters:
statement- the value for thestatementrecord componenttable- the value for thetablerecord componentdatabase- the value for thedatabaserecord component
-
-
Method Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
statement
Returns the value of thestatementrecord component.- Returns:
- the value of the
statementrecord component
-
table
Returns the value of thetablerecord component.- Returns:
- the value of the
tablerecord component
-
database
Returns the value of thedatabaserecord component.- Returns:
- the value of the
databaserecord component
-