/** * @return length of serialized TimestampWritableV2 data. As a side effect, populates the internal * byte array if empty. */ int getTotalLength() { checkBytes(); return getTotalLength(currentBytes, offset); }
/** * Used to create copies of objects * @return a copy of the internal TimestampWritableV2 byte[] */ public byte[] getBytes() { checkBytes(); int len = getTotalLength(); byte[] b = new byte[len]; System.arraycopy(currentBytes, offset, b, 0, len); return b; }
public void write(DataOutput out) throws IOException { checkBytes(); out.write(currentBytes, offset, getTotalLength()); }
public void writeToByteStream(RandomAccessOutput byteStream) { checkBytes(); byteStream.write(currentBytes, offset, getTotalLength()); }
case TIMESTAMP: int length = TimestampWritableV2.getTotalLength(bytes, offset); int saveStart = offset; offset += length;
case TIMESTAMP: recordInfo.elementOffset = 0; recordInfo.elementSize = TimestampWritableV2.getTotalLength(bytes, offset); break; case TIMESTAMPLOCALTZ:
/** * Used to create copies of objects * @return a copy of the internal TimestampWritableV2 byte[] */ public byte[] getBytes() { checkBytes(); int len = getTotalLength(); byte[] b = new byte[len]; System.arraycopy(currentBytes, offset, b, 0, len); return b; }
/** * @return length of serialized TimestampWritableV2 data. As a side effect, populates the internal * byte array if empty. */ int getTotalLength() { checkBytes(); return getTotalLength(currentBytes, offset); }
public void write(DataOutput out) throws IOException { checkBytes(); out.write(currentBytes, offset, getTotalLength()); }
public void writeToByteStream(RandomAccessOutput byteStream) { checkBytes(); byteStream.write(currentBytes, offset, getTotalLength()); }
case TIMESTAMP: int length = TimestampWritableV2.getTotalLength(bytes, offset); int saveStart = offset; offset += length;
case TIMESTAMP: recordInfo.elementOffset = 0; recordInfo.elementSize = TimestampWritableV2.getTotalLength(bytes, offset); break; case TIMESTAMPLOCALTZ: