Java 类com.facebook.swift.codec.ThriftField 实例源码

项目:hadoop-EAR    文件:DatanodeID.java   
/**
 * Create DatanodeID
 * @param name (hostname:portNumber)
 * @param storageID data storage ID
 * @param infoPort info server port 
 * @param ipcPort ipc server port
 */
@ThriftConstructor
public DatanodeID(@ThriftField(1) String name, @ThriftField(2) String storageID,
    @ThriftField(3) int infoPort, @ThriftField(4) int ipcPort) {
  this.name = name;
  this.storageID = storageID;
  this.infoPort = infoPort;
  this.ipcPort = ipcPort;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public CloseRecoverLeaseRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
    @ThriftField(2) String src, @ThriftField(3) String clientName,
    @ThriftField(4) boolean discardLastBlock) {
  super(requestMetaInfo, src, clientName);
  this.discardLastBlock = discardLastBlock;
}
项目:hadoop-EAR    文件:LocatedBlocks.java   
@ThriftConstructor
public LocatedBlocks(@ThriftField(1) long fileLength,
    @ThriftField(2) List<LocatedBlock> locatedBlocks,
    @ThriftField(3) boolean isUnderConstuction) {
  this.fileLength = fileLength;
  blocks = locatedBlocks;
  underConstruction = isUnderConstuction;
}
项目:hadoop-EAR    文件:LocatedBlockWithFileName.java   
@ThriftConstructor
public LocatedBlockWithFileName(@ThriftField(1) Block block,
    @ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset,
    @ThriftField(4) boolean corrupt, @ThriftField(5) String fileName) {
  super(block, datanodes, startOffset, corrupt);
  this.fullPath = fileName;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public GetBlockLocationsRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
    @ThriftField(2) String src, @ThriftField(3) long offset, @ThriftField(4) long length) {
  super(requestMetaInfo, src);
  this.offset = offset;
  this.length = length;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public SetPermissionRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
    @ThriftField(2) String src, @ThriftField(3) @NotNull FsPermission permission) {
  super(requestMetaInfo, src);
  notNull(permission);
  this.permission = permission;
}
项目:hadoop-EAR    文件:LocatedBlockWithOldGS.java   
@ThriftConstructor
public LocatedBlockWithOldGS(@ThriftField(1) Block block,
    @ThriftField(2) List<DatanodeInfo> datanodes, @ThriftField(3) long startOffset,
    @ThriftField(4) boolean corrupt, @ThriftField(5) int dataProtocolVersion,
    @ThriftField(6) int namespaceId, @ThriftField(7) int methodFingerPrint,
    @ThriftField(8) long oldGenerationStamp) {
  super(block, datanodes, startOffset, corrupt, dataProtocolVersion, namespaceId,
      methodFingerPrint);
  this.oldGenerationStamp = oldGenerationStamp;
}
项目:high    文件:ThirdPartyCollection.java   
@ThriftField(1)
public long getId() {
    return id;
}
项目:high    文件:ThirdPartyCollection.java   
@ThriftField(2)
public String getDate() {
    return date;
}
项目:high    文件:ThirdPartyCollectionServiceImpl.java   
public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException{
    //ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-04");
    return collection;
}
项目:high    文件:ThirdPartyCollectionServiceImpl.java   
public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection){
    //ThirdPartyCollection th = new ThirdPartyCollection(2, "2017-03-05");
    return collection;
}
项目:high    文件:LogEntry.java   
@ThriftField(1)
public String getCategory()
{
    return category;
}
项目:high    文件:LogEntry.java   
@ThriftField(2)
public String getMessage()
{
    return message;
}
项目:high    文件:ThirdPartyCollectionService.java   
@ThriftMethod
public ThirdPartyCollection save(@ThriftField(name = "collection") ThirdPartyCollection collection) throws IllegalAccessException, NoSuchMethodException, InvocationTargetException;
项目:high    文件:ThirdPartyCollectionService.java   
@ThriftMethod
public ThirdPartyCollection update(@ThriftField(name = "collection") ThirdPartyCollection collection);
项目:zipkin    文件:Scribe.java   
@ThriftMethod(value = "Log") ListenableFuture<ResultCode> log(
@ThriftField(value = 1) List<LogEntry> messages);
项目:hadoop-EAR    文件:UnixUserGroupInformation.java   
@ThriftConstructor
public UnixUserGroupInformation(@ThriftField(1) String userName,
                                @ThriftField(2) List<String> groups) {
  this(userName, groups.toArray(new String[groups.size()]));
}
项目:hadoop-EAR    文件:UnixUserGroupInformation.java   
/** Return the user's name
 */
@ThriftField(1)
public String getUserName() {
  return userName;
}
项目:hadoop-EAR    文件:UnixUserGroupInformation.java   
@ThriftField(2)
public List<String> getGroups() {
  return Arrays.asList(groupNames);
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(1)
public RequestMetaInfo getRequestMetaInfo() {
  return super.getRequestMetaInfo();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(1)
public RequestMetaInfo getRequestMetaInfo() {
  return super.getRequestMetaInfo();
}
项目:hadoop-EAR    文件:ContentSummary.java   
/** @return the file count */
@ThriftField(2)
public long getFileCount() {return fileCount;}
项目:hadoop-EAR    文件:ContentSummary.java   
/** Return the directory quota */
@ThriftField(4)
public long getQuota() {return quota;}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public List<LocatedBlock> getBlocks() {
  return blocks;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(1)
public RequestMetaInfo getRequestMetaInfo() {
  return super.getRequestMetaInfo();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getClientName() {
  return super.getClientName();
}
项目:hadoop-EAR    文件:RemoteException.java   
@ThriftField(2)
public String getMsg() {
  return getMessage();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public PingRequest(@ThriftField(1) RequestMetaInfo metaInfo) {
  super(metaInfo);
}
项目:hadoop-EAR    文件:DirectoryListing.java   
@ThriftField(1)
public List<HdfsFileStatus> getFileStatusList() {
  return Arrays.asList(partialListing);
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public AppendRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
    @ThriftField(2) String src, @ThriftField(3) String clientName) {
  super(requestMetaInfo, src, clientName);
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(3)
public short getReplication() {
  return replication;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(1)
public RequestMetaInfo getRequestMetaInfo() {
  return super.getRequestMetaInfo();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(2)
public String getSrc() {
  return super.getSrc();
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftConstructor
public GetBlockInfoRequest(@ThriftField(1) RequestMetaInfo requestMetaInfo,
    @ThriftField(2) long blockId) {
  super(requestMetaInfo);
  this.blockId = blockId;
}
项目:hadoop-EAR    文件:ClientProxyRequests.java   
@ThriftField(1)
public RequestMetaInfo getRequestMetaInfo() {
  return super.getRequestMetaInfo();
}