public final class IntervalYearMonthType extends AbstractFixedWidthType
| Modifier and Type | Field and Description |
|---|---|
static IntervalYearMonthType |
INTERVAL_YEAR_MONTH |
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(Block block,
int position,
BlockBuilder blockBuilder)
Append the value at
position in block to blockBuilder. |
int |
compareTo(Block leftBlock,
int leftPosition,
Block rightBlock,
int rightPosition)
Compare the values in the specified block at the specified positions equal.
|
boolean |
equalTo(Block leftBlock,
int leftPosition,
Block rightBlock,
int rightPosition)
Are the values in the specified blocks at the specified positions equal?
|
long |
getLong(Block block,
int position)
Gets the value at the
block position as a long. |
Object |
getObjectValue(ConnectorSession session,
Block block,
int position)
Gets an object representation of the type value in the
block
position. |
int |
hash(Block block,
int position)
Calculates the hash code of the value at the specified position in the
specified block.
|
boolean |
isComparable()
True if the type supports equalTo and hash.
|
boolean |
isOrderable()
True if the type supports compareTo.
|
void |
writeLong(BlockBuilder blockBuilder,
long value)
Writes the long value into the
BlockBuilder. |
createBlockBuilder, createFixedSizeBlockBuilder, getFixedSize, getSliceequals, getBoolean, getDisplayName, getDouble, getJavaType, getTypeParameters, getTypeSignature, hashCode, toString, writeBoolean, writeDouble, writeSlice, writeSliceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetBoolean, getDisplayName, getDouble, getJavaType, getTypeParameters, getTypeSignature, writeBoolean, writeDouble, writeSlice, writeSlicepublic static final IntervalYearMonthType INTERVAL_YEAR_MONTH
public boolean isComparable()
TypeisComparable in interface TypeisComparable in class AbstractTypepublic boolean isOrderable()
TypeisOrderable in interface TypeisOrderable in class AbstractTypepublic Object getObjectValue(ConnectorSession session, Block block, int position)
Typeblock
position. This is the value returned to the user via the
REST endpoint and therefore must be JSON serializable.public boolean equalTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition)
TypeequalTo in interface TypeequalTo in class AbstractTypepublic int hash(Block block, int position)
Typehash in interface Typehash in class AbstractTypepublic int compareTo(Block leftBlock, int leftPosition, Block rightBlock, int rightPosition)
TypecompareTo in interface TypecompareTo in class AbstractTypepublic void appendTo(Block block, int position, BlockBuilder blockBuilder)
Typeposition in block to blockBuilder.public long getLong(Block block, int position)
Typeblock position as a long.getLong in interface TypegetLong in class AbstractTypepublic void writeLong(BlockBuilder blockBuilder, long value)
TypeBlockBuilder.writeLong in interface TypewriteLong in class AbstractTypeCopyright © 2012-2014. All Rights Reserved.