Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.browseengine.bobo.geosearch.solo.impl;
 
 
 

Author(s):
gcooney
    public static final int INTERLACE_BYTES = 12;
    
    @Override
    public void writeGeoRecord(IndexOutput outputIDGeoRecord recordint recordByteCountthrows IOException {
        if (record.id.length != recordByteCount - ) {
            throw new IllegalArgumentException("Incorrect number of id bytes given.  " +
                    "This is most likely a bug!  ExpectedBytes=" + 
                    (recordByteCount - )  + 
                    "; receivedBytes=" + record.id.length);
        }
        
        output.writeLong(record.highOrder);
        output.writeInt(record.lowOrder);
        output.writeBytes(record.idrecord.id.length);
    }
    @Override
    public IDGeoRecord readGeoRecord(IndexInput inputint recordByteCountthrows IOException {
        long highOrder = input.readLong();
        int lowOrder = input.readInt();
        int countIdBytes = recordByteCount - ;
        byte[] id = new byte[countIdBytes];
        input.readBytes(id, 0, countIdBytesfalse);
        return new IDGeoRecord(highOrderlowOrderid);
    }
New to GrepCode? Check out our FAQ X