Exemplo n.º 1
0
        public virtual void Write(V value)
        {
            Preconditions.CheckNotNullArgument(value);
            GenericRecord record = ValueDef.GetRecord(value);

            mWriter.Append(record);
            mWriter.Sync();
        }
Exemplo n.º 2
0
        public override void Write(V value)
        {
            Preconditions.CheckNotNullArgument(value);
            GenericRecord record   = ValueDef.GetRecord(value);
            long          position = mWriter.Sync();

            mWriter.Append(record);
            Index.AddEntry(ValueDef.GetValueKey(value), position);
        }