public void setShort(short value) { setShort(bytes, start, value); }
public short preIncrement() { short v = getShort(); ++v; setShort(v); return v; }
public short postIncrement() { short v = getShort(); short ov = v++; setShort(v); return ov; }
public void setNumTokensBoundsInSearchKeys(short numTokensLowerBound, short numTokensUpperBound) { ShortPointable.setShort(lowerBoundTuple.getFieldData(0), lowerBoundTuple.getFieldStart(0), numTokensLowerBound); ShortPointable.setShort(upperBoundTuple.getFieldData(0), upperBoundTuple.getFieldStart(0), numTokensUpperBound); }
public static void setDate(byte[] bytes, int start, long year, long month, long day, long timezoneHour, long timezoneMinute) { ShortPointable.setShort(bytes, start + YEAR_OFFSET, (short) year); BytePointable.setByte(bytes, start + MONTH_OFFSET, (byte) month); BytePointable.setByte(bytes, start + DAY_OFFSET, (byte) day); BytePointable.setByte(bytes, start + TIMEZONE_HOUR_OFFSET, (byte) timezoneHour); BytePointable.setByte(bytes, start + TIMEZONE_MINUTE_OFFSET, (byte) timezoneMinute); }
public static void setDateTime(byte[] bytes, int start, long year, long month, long day, long hour, long minute, long milliSecond, long timezoneHour, long timezoneMinute) { ShortPointable.setShort(bytes, start + YEAR_OFFSET, (short) year); BytePointable.setByte(bytes, start + MONTH_OFFSET, (byte) month); BytePointable.setByte(bytes, start + DAY_OFFSET, (byte) day); BytePointable.setByte(bytes, start + HOUR_OFFSET, (byte) hour); BytePointable.setByte(bytes, start + MINUTE_OFFSET, (byte) minute); IntegerPointable.setInteger(bytes, start + MILLISECOND_OFFSET, (int) milliSecond); BytePointable.setByte(bytes, start + TIMEZONE_HOUR_OFFSET, (byte) timezoneHour); BytePointable.setByte(bytes, start + TIMEZONE_MINUTE_OFFSET, (byte) timezoneMinute); }