Examples of prepareWrite()


Examples of net.sf.joafip.store.service.objectio.serialize.output.IObjectOutput.prepareWrite()

    /**/new ObjectAndPersistInfo(toSerialize, false, classInfo,
        storageInfo);
    final IObjectOutput objectOutput = new ObjectOutputSerializable(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    // prepare write
    objectOutput.prepareWrite(objectAndPersistInfo);
    assertTrue("must have value changed since a new object",
        objectOutput.isValueChanged(objectAndPersistInfo));
    assertNull("for initial write must not have original value",
        objectAndPersistInfo.originalValue);
    // storageInfo.setHeaderDataSize(offset);
View Full Code Here

Examples of net.sf.joafip.store.service.objectio.serialize.output.IObjectOutput.prepareWrite()

        .getNoProxyClassInfo(Integer.class);
    final Integer integer = Integer.valueOf(10);
    final StorageInfo storageInfo = new StorageInfo();
    final ObjectAndPersistInfo objectAndItsClassInfo =
    /**/new ObjectAndPersistInfo(integer, false, classInfo, storageInfo);
    objectOutput.prepareWrite(objectAndItsClassInfo);
    final byte[] binary = new byte[1000];
    final int offset = storageInfo.getHeaderDataSize();
    storageInfo.setHeaderDataSize(offset);
    // int byte size to skip class name information
    objectOutput
View Full Code Here

Examples of net.sf.joafip.store.service.objectio.serialize.output.IObjectOutput.prepareWrite()

    /* the object class can be different than object.getClass() */
    final IObjectOutput objectOutput;
    objectOutput = getObjectOutput(classInfo);
    assert !toWrite.isSubstituted();
    objectOutput.prepareWrite(toWrite);

    final int byteSizeForObject = objectOutput.byteSize(toWrite,
        HEADER_DATA_SIZE);
    /*
     * "long byte size" added to length for object and store data record
View Full Code Here

Examples of net.sf.joafip.store.service.objectio.serialize.output.IObjectOutput.prepareWrite()

    final IObjectOutput objectOutput;
    // ASSERTX
    assert assertHasInstance(toWriteObjectAndPersistInfo, object);
    objectOutput = getObjectOutput(toWriteClassInfo);
    assert !toWriteClassInfo.isSubstituted();
    objectOutput.prepareWrite(toWriteObjectAndPersistInfo);
  }

  private boolean assertHasInstance(
      final ObjectAndPersistInfo substituteObjectAndPersistInfo,
      final Object object) throws ObjectIOException {
View Full Code Here

Examples of net.sf.joafip.store.service.objectio.serialize.output.ObjectOutputForBasic.prepareWrite()

        .getNoProxyClassInfo(Integer.class);
    final Integer integer = Integer.valueOf(10);
    final StorageInfo storageInfo = new StorageInfo();
    final ObjectAndPersistInfo objectAndItsClassInfo =
    /**/new ObjectAndPersistInfo(integer, false, classInfo, storageInfo);
    objectOutput.prepareWrite(objectAndItsClassInfo);
    final byte[] binary = new byte[1000];
    final int offset = storageInfo.getHeaderDataSize();
    storageInfo.setHeaderDataSize(offset);
    // int byte size to skip class name information
    objectOutput
View Full Code Here

Examples of net.sf.joafip.store.service.objectio.serialize.output.ObjectOutputSerializable.prepareWrite()

    /**/new ObjectAndPersistInfo(toSerialize, false, classInfo,
        storageInfo);
    final IObjectOutput objectOutput = new ObjectOutputSerializable(this,
        classInfoFactory, proxyManager2, helperBinaryConversion);
    // prepare write
    objectOutput.prepareWrite(objectAndPersistInfo);
    assertTrue("must have value changed since a new object",
        objectOutput.isValueChanged(objectAndPersistInfo));
    assertNull("for initial write must not have original value",
        objectAndPersistInfo.originalValue);
    // storageInfo.setHeaderDataSize(offset);
View Full Code Here

Examples of org.apache.hcatalog.data.transfer.HCatWriter.prepareWrite()

    private WriterContext runsInMaster(Map<String, String> config) throws HCatException {

        WriteEntity.Builder builder = new WriteEntity.Builder();
        WriteEntity entity = builder.withTable("mytbl").build();
        HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
        WriterContext info = writer.prepareWrite();
        return info;
    }

    private ReaderContext runsInMaster(Map<String, String> config, boolean bogus)
        throws HCatException {
View Full Code Here

Examples of org.apache.hcatalog.data.transfer.HCatWriter.prepareWrite()

    private static WriterContext runsInMaster(Map<String, String> config) throws HCatException {

        WriteEntity.Builder builder = new WriteEntity.Builder();
        WriteEntity entity = builder.withTable(config.get("table")).build();
        HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
        WriterContext info = writer.prepareWrite();
        return info;
    }

    private static void commit(Map<String, String> config, boolean status, WriterContext cntxt) throws HCatException {
View Full Code Here

Examples of org.apache.hcatalog.data.transfer.HCatWriter.prepareWrite()

  private WriterContext runsInMaster(Map<String, String> config) throws HCatException {

    WriteEntity.Builder builder = new WriteEntity.Builder();
    WriteEntity entity = builder.withTable("mytbl").build();
    HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
    WriterContext info = writer.prepareWrite();
    return info;
  }
 
  private ReaderContext runsInMaster(Map<String,String> config, boolean bogus) throws HCatException {
View Full Code Here

Examples of org.apache.hcatalog.data.transfer.HCatWriter.prepareWrite()

  private static WriterContext runsInMaster(Map<String, String> config) throws HCatException {

    WriteEntity.Builder builder = new WriteEntity.Builder();
    WriteEntity entity = builder.withTable(config.get("table")).build();
    HCatWriter writer = DataTransferFactory.getHCatWriter(entity, config);
    WriterContext info = writer.prepareWrite();
    return info;
  }

  private static void commit(Map<String, String> config, boolean status, WriterContext cntxt) throws HCatException {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.