protected void beforeModification()

in asterix-bad/src/main/java/org/apache/asterix/bad/feed/operators/BADLSMPrimaryInsertOperatorNodePushable.java [46:57]


    protected void beforeModification(ITupleReference tuple) {
        if (tuple.getFieldCount() >= 3
                && tuple.getFieldData(0)[tuple.getFieldStart(2)] == ATypeTag.SERIALIZED_RECORD_TYPE_TAG
                && tuple.getFieldLength(2) == 22) {
            long currMilli = System.currentTimeMillis();
            ByteBuffer tupleBuff = ByteBuffer.wrap(tuple.getFieldData(0));
            tupleBuff.putLong(tuple.getFieldStart(2) + 14, currMilli);
            if (tuple.getFieldCount() == 4) {
                tupleBuff.putLong(tuple.getFieldStart(3) + 1, currMilli);
            }
        }
    }