Modifier and Type | Method and Description |
---|---|
Constant |
TableScan.getVal(String fldName)
Returns the value of the specified field, as a Constant.
|
Constant |
SelectScan.getVal(String fldName) |
Constant |
ProductScan.getVal(String fldName)
Returns the value of the specified field.
|
Constant |
ProjectScan.getVal(String fldName) |
Constant |
ExplainScan.getVal(String fldName) |
Modifier and Type | Method and Description |
---|---|
void |
TableScan.setVal(String fldName,
Constant val)
Sets the value of the specified field, as a Constant.
|
void |
SelectScan.setVal(String fldname,
Constant val) |
void |
UpdateScan.setVal(String fldName,
Constant val)
Modifies the field value of the current record.
|
Modifier and Type | Method and Description |
---|---|
Constant |
IndexJoinScan.getVal(String fldName)
Returns the Constant value of the specified field.
|
Constant |
IndexSelectScan.getVal(String fldName)
Returns the value of the field of the current data record.
|
Modifier and Type | Method and Description |
---|---|
void |
IndexSelectScan.setVal(String fldName,
Constant val) |
Modifier and Type | Method and Description |
---|---|
Constant |
GroupByScan.getVal(String fldname)
Gets the Constant value of the specified field.
|
Constant |
MergeJoinScan.getVal(String fldName)
Returns the value of the specified field.
|
Constant |
GroupValue.getVal(String fldName)
Returns the Constant value of the specified field in the group.
|
Constant |
SortScan.getVal(String fldName)
Gets the Constant value of the specified field of the current scan.
|
Modifier and Type | Method and Description |
---|---|
Constant |
ChunkScan.getVal(String fldName) |
Constant |
MultiBufferProductScan.getVal(String fldname)
Returns the value of the specified field.
|
Constant |
HashJoinScan.getVal(String fldname) |
Modifier and Type | Method and Description |
---|---|
List<Constant> |
InsertData.vals()
Returns a list of values for the specified fields.
|
Constructor and Description |
---|
InsertData(String tblName,
List<String> fields,
List<Constant> vals)
Saves the table name and the field and value lists.
|
Modifier and Type | Class and Description |
---|---|
class |
BigIntConstant |
class |
DoubleConstant
The class that wraps Java doubles as database constants.
|
class |
IntegerConstant
The class that wraps Java ints as database constants.
|
class |
VarcharConstant
The class that wraps Java strings as database constants.
|
Modifier and Type | Method and Description |
---|---|
Constant |
VarcharConstant.add(Constant c) |
Constant |
BigIntConstant.add(Constant c) |
Constant |
IntegerConstant.add(Constant c) |
abstract Constant |
Constant.add(Constant c)
Adds this constant a value specified by another constant.
|
Constant |
DoubleConstant.add(Constant c) |
abstract Constant |
ConstantRange.asConstant() |
Constant |
DoubleConstantRange.asConstant() |
Constant |
VarcharConstantRange.asConstant() |
Constant |
VarcharConstant.castTo(Type type) |
Constant |
BigIntConstant.castTo(Type type) |
Constant |
IntegerConstant.castTo(Type type) |
abstract Constant |
Constant.castTo(Type type)
Casts this constant to the specified type.
|
Constant |
DoubleConstant.castTo(Type type) |
static Constant |
Constant.defaultInstance(Type type)
Constructs a new instance of the specified type with default value.
|
Constant |
VarcharConstant.div(Constant c) |
Constant |
BigIntConstant.div(Constant c) |
Constant |
IntegerConstant.div(Constant c) |
abstract Constant |
Constant.div(Constant c)
Divides this constant by a value specified by another constant.
|
Constant |
DoubleConstant.div(Constant c) |
Constant |
Record.getVal(String fldName)
Returns the
value of the specified field. |
abstract Constant |
ConstantRange.high()
Returns the higher bound.
|
Constant |
DoubleConstantRange.high() |
Constant |
VarcharConstantRange.high() |
abstract Constant |
ConstantRange.low()
Returns the lower bound.
|
Constant |
DoubleConstantRange.low() |
Constant |
VarcharConstantRange.low() |
Constant |
IntegerType.maxValue() |
Constant |
BigIntType.maxValue() |
Constant |
VarcharType.maxValue() |
Constant |
DoubleType.maxValue() |
abstract Constant |
Type.maxValue()
Returns the maximal
value of this type. |
Constant |
IntegerType.minValue() |
Constant |
BigIntType.minValue() |
Constant |
VarcharType.minValue()
Empty string is the minimal value by following the rules in
String.compareTo(java.lang.String) . |
Constant |
DoubleType.minValue() |
abstract Constant |
Type.minValue()
Returns the minimal
value of this type. |
Constant |
VarcharConstant.mul(Constant c) |
Constant |
BigIntConstant.mul(Constant c) |
Constant |
IntegerConstant.mul(Constant c) |
abstract Constant |
Constant.mul(Constant c)
Multiplies this constant by a value specified by another constant.
|
Constant |
DoubleConstant.mul(Constant c) |
static Constant |
Constant.newInstance(Type type,
byte[] val)
Constructs a new instance of the specified type with value converted from
the input byte array.
|
Constant |
VarcharConstant.sub(Constant c) |
Constant |
BigIntConstant.sub(Constant c) |
Constant |
IntegerConstant.sub(Constant c) |
abstract Constant |
Constant.sub(Constant c)
Subtracts a value specified by another constant from this constant.
|
Constant |
DoubleConstant.sub(Constant c) |
Modifier and Type | Method and Description |
---|---|
Constant |
VarcharConstant.add(Constant c) |
Constant |
BigIntConstant.add(Constant c) |
Constant |
IntegerConstant.add(Constant c) |
abstract Constant |
Constant.add(Constant c)
Adds this constant a value specified by another constant.
|
Constant |
DoubleConstant.add(Constant c) |
abstract ConstantRange |
ConstantRange.applyConstant(Constant c) |
ConstantRange |
DoubleConstantRange.applyConstant(Constant c) |
ConstantRange |
VarcharConstantRange.applyConstant(Constant c) |
abstract ConstantRange |
ConstantRange.applyHigh(Constant c,
boolean incl)
Returns a new range with high set to the specified constant if doing so
makes the upper bound more strict.
|
ConstantRange |
DoubleConstantRange.applyHigh(Constant c,
boolean incl) |
ConstantRange |
VarcharConstantRange.applyHigh(Constant c,
boolean incl) |
abstract ConstantRange |
ConstantRange.applyLow(Constant c,
boolean inclusive)
Returns a new range with low set to the specified constant if doing so
makes the lower bound more strict.
|
ConstantRange |
DoubleConstantRange.applyLow(Constant c,
boolean incl) |
ConstantRange |
VarcharConstantRange.applyLow(Constant c,
boolean incl) |
int |
VarcharConstant.compareTo(Constant c) |
int |
BigIntConstant.compareTo(Constant c) |
int |
IntegerConstant.compareTo(Constant c) |
int |
DoubleConstant.compareTo(Constant c) |
abstract boolean |
ConstantRange.contains(Constant c) |
boolean |
DoubleConstantRange.contains(Constant c) |
boolean |
VarcharConstantRange.contains(Constant c) |
Constant |
VarcharConstant.div(Constant c) |
Constant |
BigIntConstant.div(Constant c) |
Constant |
IntegerConstant.div(Constant c) |
abstract Constant |
Constant.div(Constant c)
Divides this constant by a value specified by another constant.
|
Constant |
DoubleConstant.div(Constant c) |
abstract boolean |
ConstantRange.largerThan(Constant c) |
boolean |
DoubleConstantRange.largerThan(Constant c) |
boolean |
VarcharConstantRange.largerThan(Constant c) |
abstract boolean |
ConstantRange.lessThan(Constant c) |
boolean |
DoubleConstantRange.lessThan(Constant c) |
boolean |
VarcharConstantRange.lessThan(Constant c) |
Constant |
VarcharConstant.mul(Constant c) |
Constant |
BigIntConstant.mul(Constant c) |
Constant |
IntegerConstant.mul(Constant c) |
abstract Constant |
Constant.mul(Constant c)
Multiplies this constant by a value specified by another constant.
|
Constant |
DoubleConstant.mul(Constant c) |
static ConstantRange |
ConstantRange.newInstance(Constant c) |
static ConstantRange |
ConstantRange.newInstance(Constant low,
boolean lowIncl,
Constant high,
boolean highIncl)
Constructs a new instance.
|
Constant |
VarcharConstant.sub(Constant c) |
Constant |
BigIntConstant.sub(Constant c) |
Constant |
IntegerConstant.sub(Constant c) |
abstract Constant |
Constant.sub(Constant c)
Subtracts a value specified by another constant from this constant.
|
Constant |
DoubleConstant.sub(Constant c) |
Modifier and Type | Method and Description |
---|---|
Constant |
DistinctCountFn.value() |
Constant |
MaxFn.value() |
Constant |
MinFn.value() |
Constant |
CountFn.value() |
Constant |
AvgFn.value() |
abstract Constant |
AggregationFn.value()
Returns the computed aggregation value given the records processed
previously.
|
Constant |
SumFn.value() |
Modifier and Type | Method and Description |
---|---|
Constant |
FieldNameExpression.asConstant()
This method should never be called.
|
Constant |
BinaryArithmeticExpression.asConstant()
Return the evaluated constant value if both expressions are constant.
|
Constant |
Expression.asConstant()
Returns the constant corresponding to a constant expression.
|
Constant |
ConstantExpression.asConstant()
Unwraps the constant and returns it.
|
Constant |
FieldNameExpression.evaluate(Record rec)
Evaluates the field by getting its value from the record.
|
Constant |
BinaryArithmeticExpression.evaluate(Record rec)
Evaluates the arithmetic expression by computing on the values from the
record.
|
Constant |
Expression.evaluate(Record rec)
Evaluates the expression with respect to the specified record.
|
Constant |
ConstantExpression.evaluate(Record rec)
Returns the constant, regardless of the record.
|
Constant |
Term.oppositeConstant(String fldName)
Determines if this term is of the form "F<OP>C" where F is the
specified field, <OP> is an operator, and C is some constant.
|
Constructor and Description |
---|
ConstantExpression(Constant c)
Creates a new expression by wrapping a constant.
|
Modifier and Type | Method and Description |
---|---|
Constant |
SpResultRecord.getVal(String fldName) |
Modifier and Type | Method and Description |
---|---|
void |
SpResultRecord.setVal(String fldName,
Constant val) |
Modifier and Type | Method and Description |
---|---|
protected Constant |
PageFormatter.getVal(Buffer buf,
int offset,
Type type) |
Constant |
Buffer.getVal(int offset,
Type type)
Returns the value at the specified offset of this buffer's page.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PageFormatter.setVal(Buffer buf,
int offset,
Constant val) |
void |
Buffer.setVal(int offset,
Constant val,
long txNum,
LogSeqNum lsn)
Writes a value to the specified offset of this buffer's page.
|
Modifier and Type | Method and Description |
---|---|
Constant |
Page.getVal(int offset,
Type type)
Returns the value at a specified offset of this page.
|
Modifier and Type | Method and Description |
---|---|
void |
Page.setVal(int offset,
Constant val)
Writes a constant value to the specified offset on the page.
|
static int |
Page.size(Constant val)
Calculates the number of bytes required to store a
constant in disk. |
Modifier and Type | Method and Description |
---|---|
Constant |
SearchKey.get(int index) |
Constructor and Description |
---|
SearchKey(Constant... constants) |
Constructor and Description |
---|
SearchKey(List<String> indexedFields,
Map<String,Constant> fldValMap)
Constructs from the given values for the specified field names.
|
Modifier and Type | Method and Description |
---|---|
Constant |
BTreePage.getVal(int slot,
String fldName) |
Modifier and Type | Method and Description |
---|---|
void |
BTreePage.setVal(int slot,
String fldName,
Constant val)
Set the value of the specified field at the specified slot.
|
Modifier and Type | Method and Description |
---|---|
Constant |
BasicLogRecord.nextVal(Type type)
Returns the next value of this log record.
|
Constant[] |
LogSeqNum.toConstants() |
Modifier and Type | Method and Description |
---|---|
LogSeqNum |
LogMgr.append(Constant[] rec)
Appends a log record to the file.
|
Modifier and Type | Method and Description |
---|---|
SortedSet<Constant> |
Percentiles.values() |
Modifier and Type | Method and Description |
---|---|
double |
Percentiles.percentage(Constant v)
Gets the percent of values below the specified value.
|
Constructor and Description |
---|
Percentiles(Map<Constant,Double> pcts)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
Constant |
RecordFile.getVal(String fldName)
Returns the value of the specified field in the current record.
|
Constant |
RecordPage.getVal(String fldName)
Returns the value stored in the specified field of this record.
|
Modifier and Type | Method and Description |
---|---|
void |
RecordFile.setVal(String fldName,
Constant val)
Sets a value of the specified field in the current record.
|
void |
RecordPage.setVal(String fldName,
Constant val)
Stores a value at the specified field of this record.
|
Modifier and Type | Method and Description |
---|---|
List<Constant> |
SetValueClr.buildRecord() |
List<Constant> |
RecordFileInsertEndRecord.buildRecord() |
List<Constant> |
IndexInsertEndRecord.buildRecord() |
List<Constant> |
IndexPageInsertRecord.buildRecord() |
List<Constant> |
IndexPageDeleteClr.buildRecord() |
List<Constant> |
LogicalStartRecord.buildRecord() |
List<Constant> |
IndexDeleteEndRecord.buildRecord() |
List<Constant> |
LogRecord.buildRecord()
Build the constants for the physical log record and return them as a
list.
|
List<Constant> |
RecordFileDeleteEndRecord.buildRecord() |
List<Constant> |
LogicalAbortRecord.buildRecord() |
List<Constant> |
IndexPageInsertClr.buildRecord() |
List<Constant> |
IndexPageDeleteRecord.buildRecord() |
Modifier and Type | Method and Description |
---|---|
LogSeqNum |
RecoveryMgr.logSetVal(Buffer buff,
int offset,
Constant newVal)
Writes a set value record to the log.
|
LogSeqNum |
RecoveryMgr.logSetValClr(long compTxNum,
Buffer buff,
int offset,
Constant newVal,
LogSeqNum undoNextLSN) |
Constructor and Description |
---|
SetValueClr(long compTxNum,
BlockId blk,
int offset,
Constant val,
Constant newVal,
LogSeqNum undoNextLSN) |
Copyright © 2022 VanillaDB Organization. All rights reserved.